Re: [Matplotlib-users] Are nested axes possible?

2009-11-16 Thread Gökhan Sever
On Mon, Nov 16, 2009 at 2:30 PM, John Didion jdid...@email.unc.edu wrote: I am trying to generate a figure of some genomic data. Basically, I want to show how many times a certain event happens within each one megabase window of each chromosome. The X axis is the chromosomal position (unit

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
On Fri, Nov 13, 2009 at 12:36 PM, per freem perfr...@gmail.com wrote: hi all, how can the space between the label (e.g. thing created by plt.xlabel('mylabel')) and the axes be adjusted? i am not talking about the space between the ticklabels of the axes and the axes themselves (which is set

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-13 Thread Gökhan Sever
') xlab.set_position((0.2, 0.1)) plt.savefig('test_logscale.pdf') the xaxis doesn't seem to be moved. any idea what might be wrong here? thanks. On Fri, Nov 13, 2009 at 1:43 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Nov 13, 2009 at 12:36 PM, per freem perfr...@gmail.com wrote

Re: [Matplotlib-users] [Numpy-discussion] parsing tab separated files into dictionaries - alternative to genfromtxt?

2009-11-11 Thread Gökhan Sever
On Wed, Nov 11, 2009 at 11:53 AM, per freem perfr...@gmail.com wrote: hi all, i've been using genfromtxt to parse tab separated files for plotting purposes in matplotlib. the problem is that genfromtxt seems to give only two ways to access the contents of the file: one is by column, where

Re: [Matplotlib-users] bug in set_yscale of bar graphs?

2009-11-11 Thread Gökhan Sever
On Wed, Nov 11, 2009 at 4:25 PM, per freem perfr...@gmail.com wrote: hi all, I am trying to make a simple bar graph that has its yaxis scale set to log.  I use the following code: import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc

Re: [Matplotlib-users] [Numpy-discussion] Using matplotlib's prctile on masked arrays

2009-10-28 Thread Gökhan Sever
On Tue, Oct 27, 2009 at 8:25 AM, josef.p...@gmail.com wrote: This should not be the correct results if you use scipy.stats.scoreatpercentile, it doesn't have correct missing value handling, it treats nans or mask/fill values as regular numbers sorted to the end.

Re: [Matplotlib-users] Movable Legend

2009-10-28 Thread Gökhan Sever
This movable legend is a good idea on plots, especially if there are many elements on one figure. However a few notes that I would like to add: 1-) So many lines of code. Makes it hard to read when I share the code with someone else. Would be so much better to have a functionality like:

[Matplotlib-users] Using matplotlib's prctile on masked arrays

2009-10-27 Thread Gökhan Sever
Hello, Consider this sample two columns of data: 99. 99. 99. 99. 99. 99. 99. 1693.9069 99. 1676.1059 99. 1621.5875 651.8040 1542.1373 691.0138 1650.4214 678.5558 1710.7311

Re: [Matplotlib-users] Plot a matrix in one command?

2009-10-27 Thread Gökhan Sever
2009/10/27 Piter_ x.pi...@gmail.com Hi all. I have a matrix M: First column is X ans the rest are Ys. Lets say 100 of them (1000 sometimes). So far I can plot it like plot(M(:,1), M(:,2),M(:,1),M(:,3)... and so on and so on) Is there any possibility to do it in matlab way? Like: You

Re: [Matplotlib-users] Possible to get four y axes on a single plot?

2009-10-24 Thread Gökhan Sever
On Sat, Oct 24, 2009 at 1:02 PM, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: I'd like to create a plot showing motor current, efficiency, speed, and output power versus input power, with all four curves on a single plot and four y axes. I've looked at the example in

[Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
Hello, Not that I like asking the same question again and again, but I just couldn't find a way to fix one annoyance on my figures when I use mathtex formatted labels. Here is one example figure: http://img14.imageshack.us/img14/4443/mathtex.png # Set the label host.set_ylabel(rDMT CCN

Re: [Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
. Realistically, we probably need to make two passes with the mathtext parser to determine spacing. A workaround is to use the \hspace command: r[#/$cm^3\hspace{-0.3}$] Mike On 10/23/2009 09:44 AM, Gökhan Sever wrote: Hello, Not that I like asking the same question again and again

[Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
Hello, One more figure and one more question. http://img263.imageshack.us/img263/6454/labelrotation.png I want to rotate the 2nd y-axis label Air Temperature upside down in other words rotating 180 degree while A staying up. Unfortunately set_rotation method is not available to a SubplotHost

Re: [Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
].label.set_rotation(270) Meanwhile, use may use something like below, pary.axis[right].get_helper()._label_angles[right]=270 Regards, -JJ On Fri, Oct 23, 2009 at 2:13 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, One more figure and one more question. http://img263.imageshack.us

Re: [Matplotlib-users] What about providing a chm version of the API

2009-10-22 Thread Gökhan Sever
On Thu, Oct 22, 2009 at 8:55 AM, clarknie clark...@gmail.com wrote: I mean, it's quite time-consuming to find the function I want on the net and the pdf version is not so convenient as the chm version. Anybody any idea? Alternatively, you can check-out the source copy and build your own

Re: [Matplotlib-users] plotting normalized histograms

2009-10-17 Thread Gökhan Sever
On Fri, Oct 16, 2009 at 7:04 PM, per freem perfr...@gmail.com wrote: hi all, i have a matrix of data and i would like to make a set of subplots, each subplot with a histgram of one of the columns of the data. the dataset is an Nx4 matrix containing only numbers between 0 and 1. i plot it

Re: [Matplotlib-users] sharing labels and legends across subplots

2009-10-11 Thread Gökhan Sever
On Sun, Oct 11, 2009 at 9:07 AM, per freem perfr...@gmail.com wrote: hi all, i am trying to share both an axis label (but not the entire axis) and a figure legend across a set of subplots. that is, i'd like to have a figure where there is a major enlarged ylabel that is meant to label the

Re: [Matplotlib-users] Names in boxplot x axis

2009-10-09 Thread Gökhan Sever
On Fri, Oct 9, 2009 at 10:41 AM, Renato Alves rjal...@igc.gulbenkian.ptwrote: Hi everyone, I've been using matplotlib for a while but mostly using the pyplot functions and going as far as changing their initial input parameters. Now I need to make a boxplot and include names on the X axis

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Gökhan Sever
Hello, Are there any opinions how to make this legend picking work after a zoom or pan event? There is no way to bring the cursor into its beginning shape and therefore non of the clicking works as expected. On Sun, Oct 4, 2009 at 9:37 AM, Peter Butterworth butt...@gmail.com wrote: Hi, I am

Re: [Matplotlib-users] loglog plot

2009-10-03 Thread Gökhan Sever
() to get new ticks as well as grids. Do you know how to make ticklabels like 5x10^2 etc...? This I couldn't figure yet. On Wed, Sep 16, 2009 at 2:25 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Tue, Sep 15, 2009 at 1:24 AM, redrum jvande...@hotmail.com wrote: Hi, I have a few questions

Re: [Matplotlib-users] Best way to plot a 2d histogram?

2009-10-01 Thread Gökhan Sever
On Thu, Oct 1, 2009 at 5:29 PM, Ernest Adrogué eadro...@gmx.net wrote: Hello all, What is the best way to plot a 2d histogram? (Note that a 2d histogram is a histogram of a bivariate variable, so it's got to be a 3d plot.) Ideally, it should look somewhat like this:

Re: [Matplotlib-users] [Numpy-discussion] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-28 Thread Gökhan Sever
On Mon, Sep 28, 2009 at 9:06 AM, Nicolas Rougier nicolas.roug...@loria.frwrote: Hi all, glumpy is a fast OpenGL visualization tool for numpy arrays coded on top of pyglet (http://www.pyglet.org/). The package contains many demos showing basic usage as well as integration with matplotlib. As

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-28 Thread Gökhan Sever
There is On Sun, Sep 27, 2009 at 8:49 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee lee.j.j...@gmail.comwrote: On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever gokhanse...@gmail.com wrote: When I run this as it is, and zoom once the top x-axis

Re: [Matplotlib-users] Gradient color on a line object

2009-09-27 Thread Gökhan Sever
, Sep 26, 2009 at 10:27 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Is it possible use a gradient color say from blue to red and/or specifying certain color threshold for a line plot (i.e I have air temperature plotted and I want to segment the color of the plot for temp 0C red

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
) # Move the title little upwards so it won't overlap with the ticklabels title = plt.title(Double time: SFM and HH:MM:SS, fontsize=18) title.set_position((0.5, 1.05)) plt.show() On Sun, Sep 27, 2009 at 12:32 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, As was suggested by Jae

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
PM, Gökhan Sever gokhanse...@gmail.com wrote: JJ, Could you please re-attach the code? Apparently, it has been forgotten on your reply. Thanks. On Sun, Sep 27, 2009 at 1:50 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Here is the modified version of your code that works for me

Re: [Matplotlib-users] Gradient color on a line object

2009-09-27 Thread Gökhan Sever
one easily. Thanks for the advice and pointers :) Regards, -JJ On Sun, Sep 27, 2009 at 2:25 AM, Gökhan Sever gokhanse...@gmail.com wrote: On Sat, Sep 26, 2009 at 10:16 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: The gradient, in general, is not supported by matplotlib yet

Re: [Matplotlib-users] Simplified version of double-axis time example (beta)

2009-09-27 Thread Gökhan Sever
On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever gokhanse...@gmail.com wrote: When I run this as it is, and zoom once the top x-axis ticklabels disappear: http://img2.imageshack.us/img2/5493/zoom1.png After

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
into this. Thank you. On Fri, Sep 25, 2009 at 11:45 AM, Gökhan Sever gokhanse...@gmail.comwrote: On Fri, Sep 25, 2009 at 6:52 AM, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, One easy one harder two questions :) My

[Matplotlib-users] Gradient color on a line object

2009-09-26 Thread Gökhan Sever
Hello, Is it possible use a gradient color say from blue to red and/or specifying certain color threshold for a line plot (i.e I have air temperature plotted and I want to segment the color of the plot for temp 0C red, and below 0 make it blue.) Would be much nicer with gradient however I am

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:50 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever gokhanse...@gmail.com wrote: With twin and proper Affine2D transformation I could not make the secondary y-axis data being shown on the figure. Please post a simple

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: As specified in the doc http://matplotlib.sourceforge.net/api/axis_api.html?highlight=get_majorticklabels#matplotlib.axis.Axis.get_majorticklabels it returns a list of Text instances. You may use

Re: [Matplotlib-users] Two questions...

2009-09-25 Thread Gökhan Sever
On Fri, Sep 25, 2009 at 6:52 AM, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, One easy one harder two questions :) My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png 1-) I want to link

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-24 Thread Gökhan Sever
wrote: Excellent. Many thanks.After all those years of using matplotlib, I finally find a use for show() Mark On Wed, Sep 23, 2009 at 11:02 PM, Gökhan Sever gokhanse...@gmail.comwrote: On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker mark...@gmail.com wrote: Hello list, I recently started

[Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Hello, One easy one harder two questions :) My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png 1-) I want to link bottom and top x axes as well as left and right y axes. For now on the x-axis xticks are the time in seconds from midnight, not sure how to add the secondary top x

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Gökhan Sever
On Thu, Sep 24, 2009 at 7:25 PM, Andre Walker-Loud walksl...@gmail.comwrote: Hi All, I have what I think is a basic question. I want to have an interactive python script/code which uses matplotlib. For example, the script first asks what data set to use, then when received, it does some

Re: [Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Thanks Jae-Joon for your explanations. My second question has easily been solved after setting the label position. However, I am still stuck snapping the axis pairs. I have two different scaled data sources. First three data (dccnConc, dccnConAmb, and dccnConSTP are plotted on the main host

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Gökhan Sever
On Thu, Sep 24, 2009 at 10:47 PM, Andre Walker-Loud walksl...@gmail.comwrote: IPython can remedy all your wonderings :) http://matplotlib.sourceforge.net/users/shell.html -- Gökhan Hi Gökhan, I am not very familiar with iPython (I am not opposed to learning either). What I have in

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-23 Thread Gökhan Sever
On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker mark...@gmail.com wrote: Hello list, I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine). My file is simple: from pylab import * ion()

Re: [Matplotlib-users] pyplot.show

2009-09-18 Thread Gökhan Sever
Running IPython with -pylab or specifying the threading option? See more at http://ipython.scipy.org/doc/stable/html/interactive/reference.html?highlight=pylab On Sat, Sep 19, 2009 at 12:42 AM, Thomas Hrabe thr...@gmail.com wrote: Hi, thank you for the quick reply. Unfortunately, none of

Re: [Matplotlib-users] Simple pattern recognition

2009-09-17 Thread Gökhan Sever
On Wed, Sep 16, 2009 at 10:46 PM, Tony S Yu ton...@mit.edu wrote: On Sep 16, 2009, at 8:22 PM, Gökhan Sever wrote: Hello all, I want to be able to count predefined simple rectangle shapes on an image as shown like in this one: http://img7.imageshack.us/img7/2327/particles.png Which

Re: [Matplotlib-users] loglog plot

2009-09-16 Thread Gökhan Sever
On Tue, Sep 15, 2009 at 1:24 AM, redrum jvande...@hotmail.com wrote: Hi, I have a few questions about the loglog plot : 1- Is there a way to a have axis format with real numbers rather than numbers with exponent ? import matplotlib.pyplot as plt ax1 = plt.gca()

[Matplotlib-users] Simple pattern recognition

2009-09-16 Thread Gökhan Sever
Hello all, I want to be able to count predefined simple rectangle shapes on an image as shown like in this one: http://img7.imageshack.us/img7/2327/particles.png Which is in my case to count all the blue pixels (they are ice-snow flake shadows in reality) in one of the column. What is the way

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Gökhan Sever
On Mon, Sep 14, 2009 at 12:30 PM, jason-s...@creativetrax.com wrote: I tried the following (most output text is deleted): In [1]: ob1=[1,1,2,2,1,2,4,3,2,2,2,3,4,5,6,7,8,9,7,6,4,5,5] In [2]: import matplotlib.pyplot as plt In [3]: plt.figure() In [4]: plt.boxplot(ob1) In [5]:

[Matplotlib-users] Distorting X-axis on a barchart

2009-09-10 Thread Gökhan Sever
Hello, I have a simple bar-chart seen at http://img40.imageshack.us/img40/4889/barchart.png What is the way to plot each bar equally spaced apart from eachother? Any simple way without defining custom ticks or manipulating the data? Homework season has just started here. Lots of matplotting to

Re: [Matplotlib-users] Distorting X-axis on a barchart

2009-09-10 Thread Gökhan Sever
On Thu, Sep 10, 2009 at 2:29 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, I have a simple bar-chart seen at http://img40.imageshack.us/img40/4889/barchart.png What is the way to plot each bar equally spaced apart from eachother? Any simple way without defining custom ticks

[Matplotlib-users] Customizing yticks while log-scaled

2009-09-10 Thread Gökhan Sever
Hello, A new plot and two questions: http://img16.imageshack.us/img16/1759/logbarchart.png 1-) How to get nicely formatted yticks while will represent my data range (in Ax10^5 fashion 10^x works perfect as a defaul however couldn't figure out how to do this with number times 10^x)? An

Re: [Matplotlib-users] Help plotting dates

2009-09-08 Thread Gökhan Sever
On Tue, Sep 8, 2009 at 7:45 AM, Armando Serrano Lombillo arser...@gmail.com wrote: Hello, I'm finding it a little difficult to make a plot with dates: I have an array with 2 columns. The first one is seconds since a certain date (let's say 8th September, 8:00am). The second one is the

Re: [Matplotlib-users] how do i get rid of the whitespace around this plot?

2009-08-28 Thread Gökhan Sever
Finetuning with axis(xmin=, xmax= , ymin= , ymax=) should yield a better looking result. You might use figure(frameon=False) for a transparent background. On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the Demolishor destrooo...@gmail.com wrote: This is the result from a call to pyplot.pcolor()

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
Thanks JJ, I was playing with different ways to create legends, and found myself a way just like you suggested. I guess in legend as long as a sequence is provided it doesn't matter whether it is a tuple or list. Am I correct? Additionally, speaking of scatters; is there a way to add a colorbar

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
On Thu, Aug 6, 2009 at 12:02 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I'm not sure what exactly you're trying to do here. You mean something like this? http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html The example uses EllipseCollection but scatter

[Matplotlib-users] No legend using scatter function

2009-08-04 Thread Gökhan Sever
Hello, Could not get a legend shown on scatter function used plot: In [4]: a = rand(100) In [5]: b = rand(100) In [22]: scatter(a,b, c=a, s=b, label=) Out[22]: matplotlib.collections.CircleCollection object at 0xa133dcc In [23]: scatter(a,b, c=a*5, s=b*5, label=) Out[23]:

Re: [Matplotlib-users] Plot aesthetics

2009-08-03 Thread Gökhan Sever
On Mon, Aug 3, 2009 at 8:52 PM, Yang Zhang yanghates...@gmail.com wrote: Hi, recently I've been using the beautiful (and easy-to-use) pycha[1] package for simple bar charts: http://img522.imageshack.us/img522/7139/tput.png So far, pycha is the closest thing I've found to Office 2007-caliber

[Matplotlib-users] Hiding data via legend

2009-08-03 Thread Gökhan Sever
Hello, I was wondering if it is possible to hide some data on figures using a say right click option to any of the legend entry and make it temporarily hidden/visible to better analyse the rest of the data? Check this screenshot for example: http://img25.imageshack.us/img25/9427/datahiding.png

Re: [Matplotlib-users] curve fitting

2009-07-29 Thread Gökhan SEVER
Have you seen this? http://zunzun.com/ *Online Curve Fitting and Surface Fitting Web Site* On Wed, Jul 29, 2009 at 6:16 AM, Bala subramanian bala.biophys...@gmail.com wrote: Friends, I have to define two equations and fit my data on to it. could someone please give me some example on how

Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread Gökhan SEVER
On Wed, Jul 22, 2009 at 11:47 AM, Jouni K. Seppänen j...@iki.fi wrote: davide lasagna lasagnadav...@gmail.com writes: ImportError: /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed to map segment from shared object: Operation not permitted Could it be that i've

[Matplotlib-users] [OT] Question about the SVN repo

2009-07-16 Thread Gökhan SEVER
Hello, I have a little of the topic question. We have a project ( http://sourceforge.net/projects/adpaa/) setup in SF using the CVS. There when I look at the code submit logs: for instance: gsever http://sourceforge.net/users/gsever committed patchset

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-10 Thread Gökhan SEVER
On Thu, Jul 9, 2009 at 11:08 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jul 9, 2009 at 12:40 AM, Gökhan SEVERgokhanse...@gmail.com wrote: I have one tiny question left working on these figures; that is: how to make mathtext font and a regular label font at the same size? For

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-10 Thread Gökhan SEVER
On Fri, Jul 10, 2009 at 10:15 AM, Michael Droettboom md...@stsci.eduwrote: Gökhan SEVER wrote: Your suggested work-arounds worked like a charming. See my before and after plots at the given links: http://img34.imageshack.us/img34/3899/dccnplot1.png http://img27.imageshack.us/img27/6274

[Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-08 Thread Gökhan SEVER
Hello, I am using axes_grid toolkit to create multiple axes. The labels' colors are nicely being updated, however size or fontsize has no effect on the resulting figure :( Are they functional, or is it something wrong with my implementation? Oh also I couldn't make the grids switched on my

Re: [Matplotlib-users] {axesgrid} - How to change fontsize on multiple labels?

2009-07-08 Thread Gökhan SEVER
On Wed, Jul 8, 2009 at 9:47 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: axes_grid toolkit uses slightly customized version of axes and different kind of artists are used to draw ticks and ticklabels, and some of the commands from original mpl do not work. But not changing fontsize and not

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
On Sun, Jul 5, 2009 at 3:41 PM, Pau vim.u...@googlemail.com wrote: ok, I installed now scipy Traceback (most recent call last): File ./prova.py, line 14, in module y.append(int(line.split('(')[1].split(')')[0])) IndexError: list index out of range what is out of range? sorry for the

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
for all... I guess that the last minute panic is not exactly the best strategy, as usual Pau 2009/7/5 Gökhan SEVER gokhanse...@gmail.com: On Sun, Jul 5, 2009 at 3:41 PM, Pau vim.u...@googlemail.com wrote: ok, I installed now scipy Traceback (most recent call last): File ./prova.py, line

Re: [Matplotlib-users] ImportError: No module named mplot3d

2009-07-01 Thread Gökhan SEVER
On Wed, Jul 1, 2009 at 9:55 AM, David Paulsendavid.paul...@duke.edu wrote: Dear List, I tried running examples of 3D plots given from the matplotlib webpage, but encountered the following error: from mpl_toolkits.mplot3d import Axes3D ImportError: No module named mplot3d I am using

Re: [Matplotlib-users] ImportError: No module named mplot3d

2009-07-01 Thread Gökhan SEVER
On Wed, Jul 1, 2009 at 3:25 PM, David Paulsendavid.paul...@duke.edu wrote: Script passed the previous error point, and a different error string this time:  File 3D_line_plot_ex.py, line 32, in module    ax.add_collection3d(poly, zs=zs, zdir='y')  File

Re: [Matplotlib-users] Zooming plot and transforms...

2009-06-29 Thread Gökhan SEVER
On Mon, Jun 29, 2009 at 7:39 AM, Fabrice Silvasi...@lma.cnrs-mrs.fr wrote: Le lundi 29 juin 2009 à 07:51 -0400, Pierre GM a écrit : Check the plotting routines in scikits.timeseries (pytseries.sourceforge.net), there's some zooming functions that could get you started. Thanks to point to

Re: [Matplotlib-users] call gimp's autocrop function from python

2009-06-24 Thread Gökhan SEVER
On Wed, Jun 24, 2009 at 12:31 PM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Could you please share your findings? I would also like to learn how to script Blender once I start get going on Gimp. Finally I made it. Please find enclosed a solution. Cheers,

Re: [Matplotlib-users] [IPython-dev] [patch] IPython.set_trace() implemented

2009-06-23 Thread Gökhan SEVER
Note: Cross-posting on IPy devel and Matplotlib-users list. Hello, My 8 hours sleep have helped me solve the riddle of IPython pylab entry from a regular Python script. Although it is funky and experimental, it works just as I have been seeking it to work for months :) Here take a look at this

[Matplotlib-users] How not to see timezone on a xlabel?

2009-06-23 Thread Gökhan SEVER
Hello, As shown in this screenshot http://img195.imageshack.us/img195/9186/timeseries.png I am trying to plot a timeseries using mpl. There is a minute detail that bothers me. I couldn't figure out how to hide the timezone information on my xlabel (here is CST) After loading the data, I use

[Matplotlib-users] Visuals for linux file systems

2009-06-17 Thread Gökhan SEVER
For those who haven't seen the article on slashdot: A Visual Expedition Inside the Linux File Systemshttp://cs.jhu.edu/%7Erazvanm/fs-expedition/ Some figures are highly eye-catching. Some of which I haven't seen in matplotlib gallery nor could be produced with. Gökhan

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-11 Thread Gökhan SEVER
On Thu, Jun 11, 2009 at 1:09 PM, JPKay kay1...@vandals.uidaho.edu wrote: Hello, I am trying to use matplotlib to create a quiver plot of a NetCDF file with the extension .nc. The Netcdf file is a series of arrays that contain information about the stress tensors on a globe. I am struggling

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 1:00 PM, Esmail ebo...@hotmail.com wrote: Hi Gökhan, Gökhan SEVER wrote: I'll give mayavi/mlab a try, I think there was a note to the effect that matplotlib quit supporting 3D plots and recommended mayavi. There is still work going

Re: [Matplotlib-users] Upgrading of 3D plotting in matplotlib- recent comments on web site.

2009-06-09 Thread Gökhan SEVER
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora lou_boog2...@yahoo.com wrote: --- On *Tue, 6/9/09, Gökhan SEVER gokhanse...@gmail.com* wrote: Modified that section as to eliminate confusions: * NOTE:* *Experimental work has been going on to integrate 3D plotting functionality into matplotlib

[Matplotlib-users] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
Hello, How do you add you automatically check-out new added files from matplotlib trunk? Is there a specific svn command for this? Another question: For example IPython has uses bzr and when I issue bzr branch lp:ipython command I grab the latest development branch. I do a development

Re: [Matplotlib-users] [matplotlib-devel] The easiest way to check-out matplotlib source

2009-06-08 Thread Gökhan SEVER
On Mon, Jun 8, 2009 at 2:16 PM, John Hunter jdh2...@gmail.com wrote: On Mon, Jun 8, 2009 at 2:14 PM, Gökhan SEVERgokhanse...@gmail.com wrote: Hello, How do you add you automatically check-out new added files from matplotlib trunk? Is there a specific svn command for this? Check out

Re: [Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Gökhan SEVER
Hi, I sometimes create matplotlib plots without any labels on them -figures only. Then I add appropriate titles and/or labels using either MS Word or OO Writer. A few times used GIMP too to add additional texts. When I can't easily figure out things in matplotlib this method turns out helpful to

Re: [Matplotlib-users] Use text AS values for x-axis

2009-05-30 Thread Gökhan SEVER
Hey, Try this: plot([1,2,3]) locs, labels = xticks([0,1,2], ['Trial1', 'Trial2', 'Control']) Gökhan On Sat, May 30, 2009 at 8:05 PM, W. Augustine Dunn III wadun...@gmail.comwrote: I am sorry if this has been covered in teh archives or is RTFM-sh but I looked in both places and am low on

Re: [Matplotlib-users] Use text AS values for x-axis

2009-05-30 Thread Gökhan SEVER
simple. Gus On Sat, May 30, 2009 at 6:12 PM, Gökhan SEVER gokhanse...@gmail.comwrote: Hey, Try this: plot([1,2,3]) locs, labels = xticks([0,1,2], ['Trial1', 'Trial2', 'Control']) Gökhan On Sat, May 30, 2009 at 8:05 PM, W. Augustine Dunn III wadun...@gmail.com wrote: I am sorry

Re: [Matplotlib-users] A request for code critique

2009-05-17 Thread Gökhan SEVER
big sheet of paper. Yes, the IPython call from shell still stays a mystery... Gökhan On Thu, May 14, 2009 at 12:52 PM, João Luís Silva jsi...@fc.up.pt wrote: Gökhan SEVER wrote: Hello, After solving the boxplotting mystery, and figuring out how to change the mouse hover reading

Re: [Matplotlib-users] A request for code critique

2009-05-17 Thread Gökhan SEVER
() after each plot command. Please comment me if I am wrong... Gökhan On Sun, May 17, 2009 at 3:19 PM, Roy Hyunjin Han starsareblueandfara...@gmail.com wrote: On Sun, May 17, 2009 at 2:17 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hello Roy, ipython splot.py 09_03_23_11_44_54

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-14 Thread Gökhan SEVER
percentiles of the data respectively. Could someone please comment on this? Gökhan On Wed, May 13, 2009 at 8:43 PM, Gökhan SEVER gokhanse...@gmail.com wrote: One more point to add. I issued one more boxplot with prctile(data) (a mlab command which boxplot calls internally to calculate

[Matplotlib-users] A request for code critique

2009-05-14 Thread Gökhan SEVER
Hello, After solving the boxplotting mystery, and figuring out how to change the mouse hover reading sensitivities, I have finished my small script which creates boxplots from a given file. I can call it either by issueing ./splot.py file or from inside ipython -pylab with run command. However I

[Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
Hello, Is there a way to change the resolution of x and y readings (while hovering the mouse inside the canvas area) from the status bar of a plot window? Currently x show 2 or 3 digits after 0, while y only increments at 0.1 or 1 depends on the number. Can we set these based on our needs?

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
Thank you for the response once again. That's why I am suspecting actually the raw data. At the problem points there might be not included values or missing values where not exist on the normal plots. I will find the original data and feed boxplot with it to see how it effects the final result.

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
, fmt_ydata) = myformat Since the function will return a tuple with two values could they be assigned directly in the give fashion? Gökhan On Wed, May 13, 2009 at 1:50 PM, John Hunter jdh2...@gmail.com wrote: On Wed, May 13, 2009 at 1:39 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hello

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
Nop John, I was just wondering whether my assignment syntactically correct in Python or a missing feature in matplotlib. Gökhan On Wed, May 13, 2009 at 2:23 PM, John Hunter jdh2...@gmail.com wrote: On Wed, May 13, 2009 at 2:15 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hmm, Thank you

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
, Gökhan SEVER gokhanse...@gmail.com wrote: Thank you for the response once again. That's why I am suspecting actually the raw data. At the problem points there might be not included values or missing values where not exist on the normal plots. I will find the original data and feed boxplot

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
or is it the data... Gökhan On Wed, May 13, 2009 at 7:56 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Ok, With this figure, it is clearer to see what's wrong with two of my boxplots. I pull the original data and feed boxplot with it. The 1st boxplot is using only quartiles and the next is providing

[Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
Hello, I construct my boxplots (shown in this figure: http://img204.imageshack.us/img204/7518/boxplot2.png) using 5th, 25th, 50th, 75th, 95th percent of my data explicitly. For some reason on boxplot 3 and 5 on the figure I get fliers instead of whiskers on the lower parts. Do you have any idea

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
distribution? Gökhan SEVER wrote: Hello, I construct my boxplots (shown in this figure: http://img204.imageshack.us/img204/7518/boxplot2.png) using 5th, 25th, 50th, 75th, 95th percent of my data explicitly. For some reason on boxplot 3 and 5 on the figure I get fliers instead of whiskers

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
for a simple test. d = loadtxt('tas', skiprows=2) # for a one line testing boxplot(d[0][8:]) # all boxplots in one plot boxplot([d[i][8:] for i in range(12)]) Gökhan On Tue, May 12, 2009 at 10:05 PM, Josh Hemann jhem...@vni.com wrote: Gökhan SEVER-2 wrote: For some reason on boxplot 3

[Matplotlib-users] Boxplots overlayed with plots

2009-05-10 Thread Gökhan SEVER
Hello, I overlay bunch of boxplots with mean values shown as stars on each corresponding boxplot instance. (As could be seen in this image: http://img216.imageshack.us/img216/7528/boxplot.png. There is a minor thing that affects the appearance of the figure. That is 1st and the last boxplots

Re: [Matplotlib-users] Boxplots overlayed with plots

2009-05-10 Thread Gökhan SEVER
And the answer is: axis(xmin=..., xmax=...) Probably, that was a very easy question and no one wanted to answer :) Gökhan On Sun, May 10, 2009 at 4:12 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hello, I overlay bunch of boxplots with mean values shown as stars on each corresponding

Re: [Matplotlib-users] using MPL and ipython run command

2009-05-06 Thread Gökhan SEVER
Hi You may add these two lines: fig = plt.figure() fig.clear() It should give what you want to see. Gökhan On Wed, May 6, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov wrote: Hi all I'm sure this is documented somewhere, but I can't find it. I'm finally getting around to

Re: [Matplotlib-users] Stick Plot?

2009-05-06 Thread Gökhan SEVER
Just for your information: Mayavi has a quiver3d function (http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#quiver3d) if you want to go a fancier way :) This said, I don't know how to hide arrow heads in Mayavi. Also what you showed in your

Re: [Matplotlib-users] using MPL and ipython run command

2009-05-06 Thread Gökhan SEVER
: Gökhan SEVER wrote: You may add these two lines: fig = plt.figure() fig.clear() I thought I'd tried that (at least I'd tries plt.clf() ), but indeed, that takes care of it. I'm a bit confused as to why that is necessary, but at least it's working for me. thanks, -Chris It should give what

Re: [Matplotlib-users] Stick Plot?

2009-05-06 Thread Gökhan SEVER
...@noaa.gov wrote: Gökhan SEVER wrote: Mayavi has a quiver3d function (http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#quiver3d) if you want to go a fancier way :) which is cool, but Im looking to plot a time series of a (2d) vector

Re: [Matplotlib-users] Matplotlib documentation

2009-04-29 Thread Gökhan SEVER
Hello, About two months ago I was asking how to implement the following functionality for matplotlib documentation. Well today I figured it out :) I was busy with some other school work not been thinking for over twom months :P Is there a way to get functions separately listed under each

Re: [Matplotlib-users] Integrating matplotlib into a GUI

2009-04-29 Thread Gökhan SEVER
wrote: On Sun, Apr 26, 2009 at 6:41 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hello, Thanks for the pointer Bryan. I also seen Gael's tutorial (http://gael-varoquaux.info/computers/traits_tutorial/index.html) To me, it seems much easier to use Traits, instead of learning WX or QT

Re: [Matplotlib-users] Integrating matplotlib into a GUI

2009-04-26 Thread Gökhan SEVER
Hello, Thanks for the pointer Bryan. I also seen Gael's tutorial ( http://gael-varoquaux.info/computers/traits_tutorial/index.html) To me, it seems much easier to use Traits, instead of learning WX or QT. They are still confusing to me, and seemingly Traits is there to help me implement what I

<    1   2   3   4   >