Re: [Matplotlib-users] linearized log axis

2010-05-19 Thread Benjamin Root
Maybe I am misunderstanding your problem, but you can select 'semilog' for the x/yscale parameter. Ben Root On Wed, May 19, 2010 at 7:03 AM, Christer Malmberg christer.malmberg.0...@student.uu.se wrote: Hi, my problem is that I need a graph with a discontinous y-axis. Let me explain the

Re: [Matplotlib-users] linearized log axis

2010-05-20 Thread Benjamin Root
Firingefir...@hawaii.edu: On 05/19/2010 10:28 AM, Benjamin Root wrote: Maybe I am misunderstanding your problem, but you can select 'semilog' for the x/yscale parameter. You mean symlog. See http://matplotlib.sourceforge.net/examples/pylab_examples/symlog_demo.html

Re: [Matplotlib-users] linearized log axis

2010-05-20 Thread Benjamin Root
is with exactly 0. Mike On 05/20/2010 10:08 AM, Benjamin Root wrote: Do we really want to depend on a floating point equality? Ben Root On Thu, May 20, 2010 at 9:02 AM, Michael Droettboommd...@stsci.edu wrote: Yep. That's a bug. Here's a patch to fix it: ndex: lib/matplotlib

Re: [Matplotlib-users] Scatterplots with colorscale?

2010-05-21 Thread Benjamin Root
Andreas, Check out hexbin(), it is the easiest way to do what you want. Ben Root On Fri, May 21, 2010 at 2:52 PM, Andreas Hilboll li...@hilboll.de wrote: Hi there, the attached figure shows a scatterplot, where the colors indicate the density of measurement points. Is there any way to do

Re: [Matplotlib-users] Scatterplots with colorscale?

2010-05-21 Thread Benjamin Root
Andreas, With respect to the large PDF file, while hexbin() would help in that regards, if you need further improvement in filesize, there is a kwarg for some plotting functions: rasterized=True. You might need to use a svn checkout of matplotlib for it to work though, but I am dealing with the

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Benjamin Root
On Fri, May 21, 2010 at 5:16 PM, Jeff Whitaker jsw...@fastmail.fm wrote: On 5/21/10 3:57 PM, Benjamin Root wrote: I did some more digging and I think I have a hypothesis for what is happening. There is only one main difference between a call to .drawstates() and .readshapefiles

Re: [Matplotlib-users] eps/pdf/svg contourf contours don't overlap properly with high resolution data

2010-05-24 Thread Benjamin Root
On Thu, May 20, 2010 at 1:06 AM, ayuffa ayu...@gmail.com wrote: Does anyone have another fix for this problem that DOES NOT produce HUGE PDF/EPS files? I believe that the latest SVN revision should allow you to set rasterized=True for the call to contourf. I don't know if the relevant code

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-25 Thread Benjamin Root
Chris, If you have lat-long, you can call your basemap object to convert it to map coordinates. I forget if you have to call inverse=True or not. Off the top of my head it would be something like this (assuming 'map' is your Basemap object that has already been initialized): x, y = map(45.0,

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Benjamin Root
Oz, Some plotting functions like pcolor and imshow have keyword args for vmin/vmax where you can explicitly set the min and maximum values for the colorscale. There are some more complicated things you can do with the colormap that are more generic to all plotting functions as well, but I would

Re: [Matplotlib-users] accessing colorbar() list of values

2010-05-31 Thread Benjamin Root
Yeah, I don't think that is what you want. I believe the 'ax' you are referencing there is the figure axes. How do you want the numbers to appear? Ben Root On Mon, May 31, 2010 at 8:27 PM, Oz Nahum nahu...@gmail.com wrote: Hi, I open another thread because I think this is not related. I

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Benjamin Root
On Mon, May 31, 2010 at 7:51 PM, Oz Nahum nahu...@gmail.com wrote: Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you suggested ... I'll look into it. Do you have an idea where I can find a description of the keyword format '%.3f'

[Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-01 Thread Benjamin Root
Hello, Does anybody know what is the difference between mpl_toolkit.axes_grid and mpl_toolkit.axes_grid1? Thanks, Ben Root -- ___ Matplotlib-users mailing list

Re: [Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Benjamin Root
Denis, There are probably other ways, but the one that I know off the top of my head is done at the savefig() function. If you want to remove the background entirely, you can specify the keyword argument transparent=True. You can change the color using the facecolor keyword argument. You can

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your 5th column are many orders of magnitude smaller than the values of the other ys. If you want multiple y-axes on the same plot, then you might want to look at Parasite

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Malte, You may want to look into Numpy's genfromtxt() or loadtxt() functions. They will make your life so much easier for loading data from a text file. Ben Root On Tue, Jun 1, 2010 at 6:47 PM, Malte Dik malte@web.de wrote: Howard Sun h...@nvidia.com Sorry for the newbie question, how

Re: [Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Benjamin Root
trying to change the color of 3D axes (x,y,z) which, by default, have a grid with a gray background. I manage to remove the grid lines but not the background color. (My initial question was not very clear perhaps...) Denis Le mardi 01 juin 2010 à 16:57 -0500, Benjamin Root a écrit

Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-01 Thread Benjamin Root
version of matplotlib, axes_grid is divided into two separate modules, axes_grid1 and axisartist (axes_grid is provided for backward compatibility). Please see the above link when it is back online. Regards, -JJ On Tue, Jun 1, 2010 at 5:34 PM, Benjamin Root ben.r...@ou.edu wrote: Hello

Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-03 Thread Benjamin Root
at this moment. In short, in the svn version of matplotlib, axes_grid is divided into two separate modules, axes_grid1 and axisartist (axes_grid is provided for backward compatibility). Please see the above link when it is back online. Regards, -JJ On Tue, Jun 1, 2010 at 5:34 PM, Benjamin Root

Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-03 Thread Benjamin Root
On Thu, Jun 3, 2010 at 12:22 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jun 3, 2010 at 12:52 PM, Benjamin Root ben.r...@ou.edu wrote: Well, the link is still not back, so I will probe you a bit further. You say that axes_grid is provided for backward compatibility, does that mean

Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-05 Thread Benjamin Root
they became a separate package, axisartist). Again, for new project, use axes_grid1 and/or axisartist. Regards, -JJ On Thu, Jun 3, 2010 at 11:17 PM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jun 3, 2010 at 12:22 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jun 3, 2010 at 12:52

Re: [Matplotlib-users] plotting heatmap matrices in matplotlib with scale

2010-06-06 Thread Benjamin Root
I think what you are looking for is a way to specify the colormap of your plot. While the documentation is a little sparse on this topic, there is plenty of functionality in matplotlib regarding colormaps. Here is a list of built-in colormaps:

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-07 Thread Benjamin Root
Todd, I think you are missing a plt.show() at the end of your code. matplotlib, by default on most systems, does not show a plot until you tell it to using plt.show() command. See if that works, Ben Root On Mon, Jun 7, 2010 at 7:57 AM, Todd V Rovito rovit...@gmail.com wrote: Greetings,

Re: [Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-07 Thread Benjamin Root
Dharhas, Is it possible to find out which version of python was installed for your other RHEL5 machine? I don't know if that makes a difference or not, but RHEL5 by default uses Python 2.4. Ben Root On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina dharhas.poth...@twdb.state.tx.us wrote: Hi,

Re: [Matplotlib-users] better way to change spine and ticklabel colors?

2010-06-07 Thread Benjamin Root
I would like to second this sentiment. I just encountered a situation today where I needed to modify the fontsize of the ticklabels and I could not find any obvious method for modifying the properties. Unless I am mistaken and there are methods for this, shall I file a feature request? Ben Root

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-08 Thread Benjamin Root
not work ##img = zeros((10, 10), dtype=uint8) ##for i in range(10): ##img[i,i] = 255; plt.imshow(img) plt.show() print data type of img: print img.dtype print size of img: + str(img.size) print img On Mon, Jun 7, 2010 at 10:04 AM, Benjamin Root ben.r...@ou.edu wrote: Todd, I think

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
I tried to reproduce your attached plots using the functions you gave. While I was able to reproduce your first graph (values from -1.08e-20 to -1.386e-20) I could not reproduce your second graph. My y2 has values from 1.397e27 to 1.7936e27. Your second graph shows values ranging from 1.7e-27 to

Re: [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart

2010-06-08 Thread Benjamin Root
Ted, You can call ylim([0, 100]) after you create your plot. If you have the axes object (from gca()), you can directly manipulate the limits using set_ylim([0, 100]). Ben Root On Tue, Jun 8, 2010 at 10:50 AM, Ted Kord teddy.k...@googlemail.com wrote: Hi How do I set the range of the

Re: [Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-08 Thread Benjamin Root
python on both machines in python 2.4 but I set up python 2.6 as an alternate install in /opt/python26. - dharhas Benjamin Root ben.r...@ou.edu 6/7/2010 3:56 PM Dharhas, Is it possible to find out which version of python was installed for your other RHEL5 machine? I don't know if that makes

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David waleriantu...@gmail.com wrote: no, I think, did not understand my functions.seei made a change my second function in the attached. On Tue, Jun 8, 2010 at 3:48 PM, Benjamin Root ben.r...@ou.edu wrote: I think I found your errors

Re: [Matplotlib-users] virtualenv installation: ImportError: No module named _tkagg

2010-06-09 Thread Benjamin Root
I don't know if this is the same issue that I had once, but I will just throw it out there. Once I compiled matplotlib myself before double-checking that I had all the needed development files and so the build process didn't produce all the files for tkagg and used GTKAgg instead. I had to get

Re: [Matplotlib-users] Placing images on figures

2010-06-10 Thread Benjamin Root
Actually, You might want to check out axes_grid module in the mpl_toolkits. After a quick perusal, I think InsetLocator might be what you are looking for in the axes_grid module. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html I hope this helps, Ben Root On Thu, Jun

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Benjamin Root
On Thu, Jun 10, 2010 at 11:05 AM, Jeff Whitaker jsw...@fastmail.fm wrote: On 6/9/10 1:58 PM, Benjamin Root wrote: Has anybody given any further thought to the implication of having Basemap set adjustable as box-forced instead of box? So far, it has been working just fine for me, but I have

Re: [Matplotlib-users] [matplotlib-devel] Is there a way to link axes of imshow plots?

2010-06-10 Thread Benjamin Root
On Thu, Jun 10, 2010 at 1:00 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root ben.r...@ou.edu wrote: P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap and AxesGrid. For the displayed plot, if one were to zoom in on one

Re: [Matplotlib-users] Trend curve

2010-06-10 Thread Benjamin Root
Just in case nobody responded to you, yet... Are you asking how to plot a trend line onto a figure already containing data, or are you asking how to calculate a trend line from the data? If you need to calculate a trend line, then you need to use the SciPy module. If you already have your trend

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Benjamin Root
Just to make sure, were you calling subplots_adjust() *before* calling subplot()? Calling it after subplot() shouldn't have an effect on the already created axes (I think...). Ben Root On Thu, Jun 10, 2010 at 3:41 PM, mdekauwe mdeka...@gmail.com wrote: Unless I am mistaken subplots_adjust

Re: [Matplotlib-users] 3d plotting without ticklabels

2010-06-11 Thread Benjamin Root
Ola, Just to make sure, have you tried ax.set_xticks([])? Ben Root On Fri, Jun 11, 2010 at 3:05 AM, Ola Skavhaug skavh...@simula.no wrote: Hi, I'm trying to remove the xtickmarks and ytickmarks from a 3d plot, without any success. The example I experiment with is the following: from

Re: [Matplotlib-users] 2D polar surface plot

2010-06-15 Thread Benjamin Root
Stephane, First off, you probably do not want to use a surface plot. Rather, pcolor might be more appropriate. In addition, if you can take the azimuth-range coordinates and convert that into x-y coordinates, you can then plot a pcolor using just that. The code would look something like so

Re: [Matplotlib-users] turning off tick marks

2010-06-17 Thread Benjamin Root
Try ax.set_xticks([]), I think that works for 2D plots. Ben Root On Thu, Jun 17, 2010 at 11:22 AM, Jeff Perry jef...@gmail.com wrote: can someone tell me how to turn off the tick marks on my plot? i tried this [line.set_marker('None') for line in ax.get_xticklines()] but this turns

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Benjamin Root
On Tue, Jun 22, 2010 at 3:45 AM, Matthias Michler matthiasmich...@gmx.netwrote: On Tuesday, June 22, 2010 10:03:06 am Eric Firing wrote: On 06/21/2010 09:28 PM, Matthias Michler wrote: On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: On 06/21/2010 06:10 AM, Matthias Michler wrote:

Re: [Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Benjamin Root
Jon, One thing you can do is to manually specify the levels to contour for in the contour call, or just specify the number of contours (and contour() will figure out the levels for you). The fourth argument to contour() allows you to give a sequence of values (or an integer) for the isopleths.

Re: [Matplotlib-users] selecting part of a contour to plot

2010-06-22 Thread Benjamin Root
, 1]) That should do the trick as well (assuming you know the level that you want the isopleth for). Ben Root On Tue, Jun 22, 2010 at 6:27 PM, Benjamin Root ben.r...@ou.edu wrote: Jon, One thing you can do is to manually specify the levels to contour for in the contour call, or just specify

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Benjamin Root
Stephen, Most likely, the program isn't really going back to the original axes as much that it is automatically setting the axes to fit all the data from the new plot (which would likely be the original axes, but only by coincidence). I am sure there is some sort of easy way to do this, but the

Re: [Matplotlib-users] colorbar and logscale

2010-06-24 Thread Benjamin Root
Benoit, Is there any particular reason why you can't do a log10() of the data that is being pcolor()'d and then label the colorbar as having units of dB? That would seem to be the most straight-forward approach to me. Ben Root 2010/6/24 Benoit Donnet benoit.don...@uclouvain.be Hi guys,

Re: [Matplotlib-users] colorbar and logscale

2010-06-24 Thread Benjamin Root
Ah, I just noticed that. Actually, I think I just figured out what is happening. The colorbar automatically chooses what values to display, and in your case, the values are 0.0, -0.4, -0.8, -1.2, -1.6, ..., -3.6, which when turned into integers are 0, 0, 0, -1, -1, ..., -3, which matches what

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
Ranjit, There are a couple of possibilities. The first is that the TrueType fonts packages weren't detected during the build, so matplotlib compiled without it, leading to your issue. I have also seen an issue where your ~/.matplotlib/ needs to be cleaned out of font-related files. Another

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
:59 PM, Benjamin Root ben.r...@ou.edu wrote: Ranjit, There are a couple of possibilities. The first is that the TrueType fonts packages weren't detected during the build, so matplotlib compiled without it, leading to your issue. I have also seen an issue where your ~/.matplotlib/ needs

Re: [Matplotlib-users] Symbol not found

2010-06-25 Thread Benjamin Root
matplotlib developer wiki doesn't turn up anything. There isn't anything in the ~/.matplotlib directory. I just went ahead and recompiled numpy and matplotlib, and got the same error. -Ranjit On Fri, Jun 25, 2010 at 12:59 PM, Benjamin Root ben.r...@ou.edu wrote: Ranjit, There are a couple

Re: [Matplotlib-users] How to save text in vector images as text rather than paths?

2010-06-28 Thread Benjamin Root
Just to note, in Linux, one can use the pdf2ps command. I believe Windows users can use GhostScript to convert a pdf into an eps file rather than using Illustrator for a simple conversion process. Ben Root On Sun, Jun 27, 2010 at 2:12 PM, Eric Firing efir...@hawaii.edu wrote: On 06/27/2010

Re: [Matplotlib-users] interpolation 2d: delaunay and griddata, bad results

2010-06-28 Thread Benjamin Root
The griddata function should be doing delaunay triangulation by default, so the result from griddata should be identical to the second plot. I see that you are using a mask for x0, y0, v0. This is unnescessary, as you really want to pass the flat arrays. I can not get a masked array from

Re: [Matplotlib-users] How to save text in vector images as text rather than paths?

2010-06-28 Thread Benjamin Root
Hmm, there is definitely a difference in qualiity. Thanks for the tip!/ Ben Root On Mon, Jun 28, 2010 at 11:46 AM, Eric Firing efir...@hawaii.edu wrote: On 06/28/2010 04:30 AM, Benjamin Root wrote: Just to note, in Linux, one can use the pdf2ps command. I believe I recommend the pdftops

Re: [Matplotlib-users] matplotlib in interactive mode from a script

2010-07-01 Thread Benjamin Root
On Thu, Jul 1, 2010 at 10:42 AM, ninjasmith henrylindsaysm...@gmail.comwrote: Hi, I think what you are after is the interactive mode of matplotlib. You can turn is on by ion and redraw the current figure using draw. In ipythons pylab mode this is done implicit. I attached some

Re: [Matplotlib-users] How can I solve this ... ??? II

2010-07-03 Thread Benjamin Root
Ademir, I am glad it is working for you now. Just as a note, the unicode() function uses whatever encoding that is default on your system. Therefore, if it is possible for you to get inputs of strings in other encodings, then it is considered good practice to handle this at the point of string

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-04 Thread Benjamin Root
Jeremy, The pcolor function can take a vmin and a vmax parameter if you wish to control the colorscaling. In addition, you can use a special array structure called a masked array to have pcolor ignore special values. Assuming your data is 'vals': vals_masked = numpy.ma.masked_array(vals, vals

Re: [Matplotlib-users] Animation with an image in the backgroud

2010-07-05 Thread Benjamin Root
I should first note that the way to do animations in matplotlib will probably be improved soon, the current methods should still be valid. Ok, the way how I understand how blitting works is that a copy of the static background is made before any of the sprites are drawn. That static background

Re: [Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Benjamin Root
Well, as far as I can tell, all zooms are manual unless done explicitly through the code (maybe you meant a situation where a window resize triggers a change in the data limits?) Anyway, you might want to look at some of the set_aspect() options. Also, in the latest version (1.0), we have made

Re: [Matplotlib-users] remove matplotlib

2010-07-07 Thread Benjamin Root
Samuel, Fortunately, matplotlib keeps all of the files that it compiles with the python files that it installs. On Ubuntu, I believe that the installation directory was /usr/lib/python2.?/dist-packages/matplotlib* (note, I don't remember the exact version of python and the exact name of the

Re: [Matplotlib-users] contourf shows a unwanted white space

2010-07-07 Thread Benjamin Root
Bala, the white space you see is due to contourf trying to have the axes ticks end on a round number. If you don't want that behavior, you can set the limits of the plot after calling contourf() with something like this: contourf(X, Y, Z) xlim(x_min, x_max) ylim(y_min, y_max) presuming you

Re: [Matplotlib-users] hammer/aitoff projection-changing the axis

2010-07-07 Thread Benjamin Root
Try out the xlim() function. It can take a tuple of values, or two arguments. Ben Root On Wed, Jul 7, 2010 at 4:57 AM, abbb ab...@sussex.ac.uk wrote: Hi there, I am trying to rotate the axis of my hammer plot. They are set to span from -pi to pi along the x-axis and pi/2 to -pi/2 on the

Re: [Matplotlib-users] plotting irregular spaced data

2010-07-07 Thread Benjamin Root
imshow requires the data to be regularly spaced. use pcolor instead. Also, to be clear, pcolor() can take 1-D X and Y arguments, but only if it is regular. If the coordinates are irregular, then you need to use 2D X and Y arguments. Ben Root On Wed, Jul 7, 2010 at 5:15 PM, Ross Williamson

Re: [Matplotlib-users] Zoom event assigned to a Push button in QT

2010-07-08 Thread Benjamin Root
Yes, I believe so. I believe it is possible to create the axes with navigation disabled so that their callbacks are never connected. Then, you can use the same callback system to trigger the axes pan and zoom on your own controls. http://matplotlib.sourceforge.net/users/event_handling.html

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-09 Thread Benjamin Root
...@gmail.com wrote: On Thu, Jul 8, 2010 at 8:41 AM, Jeremy Conlin jlcon...@gmail.com wrote: On Sun, Jul 4, 2010 at 8:38 PM, Benjamin Root ben.r...@ou.edu wrote: Jeremy, The pcolor function can take a vmin and a vmax parameter if you wish to control the colorscaling. In addition, you can use

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-12 Thread Benjamin Root
, 2010 at 8:43 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Friday, July 9, 2010, Benjamin Root ben.r...@ou.edu wrote: Jeremy, I believe that 0.99.1 is fairly old. I don't know when Axes3D came along, but I am sure you can find it in 0.99.3. It is most definitely in 1.0, but you might

Re: [Matplotlib-users] Redisplay a figure after it was closed

2010-07-13 Thread Benjamin Root
Pellegrini, Sorry for the delay. The answer is that, unfortunately, it is not possible to reshow a figure after closing it, even if you still have the figure object. Because of GUI backends, the close action destroys some GUI objects that were created when the figure was created. Therefore, a

Re: [Matplotlib-users] Basemap contourf question

2010-07-14 Thread Benjamin Root
Steve, Could you please attach an example image of what you are seeing? Ben Root On Wed, Jul 14, 2010 at 5:52 PM, Steve McFarlin st...@stevemcfarlin.comwrote: Hello, I am trying to create a color map that maps 18 colors across 50 levels. As an example let say I have three colors [r,g,b]

Re: [Matplotlib-users] Basemap contourf question

2010-07-14 Thread Benjamin Root
, at 4:12 PM, Benjamin Root wrote: Steve, Could you please attach an example image of what you are seeing? Ben Root On Wed, Jul 14, 2010 at 5:52 PM, Steve McFarlin st...@stevemcfarlin.comwrote: Hello, I am trying to create a color map that maps 18 colors across 50 levels. As an example

Re: [Matplotlib-users] Basemap contourf question

2010-07-14 Thread Benjamin Root
is being called with a line width of 1 and a color of white. Setting these line width to 0 did not make a difference. Thanks, Steve On Jul 14, 2010, at 5:24 PM, Benjamin Root wrote: Steve, The ghost lines appear to be an artifact of the anti-aliasing. In my tests, setting antialiased=False

Re: [Matplotlib-users] scientific notation

2010-07-15 Thread Benjamin Root
On Thu, Jul 15, 2010 at 8:41 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hi all, I have a code base so that: from pylab import * x = arange (3000,3400) y = -108 * (3.0e14 ** 2)/x**2 pylab..title(Teste) pylab.savefig(imagem.png) plot(x, y) Well the values of the

Re: [Matplotlib-users] print to aprint device!

2010-07-15 Thread Benjamin Root
Since no-one has replied to this, let me see if I can come up with an idea. Assuming you are using Linux or a Mac, I wonder if it is somehow possible to save a .ps file to a postscript device? I have never had to do any Linux magic with CUPS, so maybe this isn't possible. Anybody else have any

Re: [Matplotlib-users] scientific notation

2010-07-16 Thread Benjamin Root
Please attach the code you used to generate this image. Ben Root On Fri, Jul 16, 2010 at 7:11 AM, Waléria Antunes David waleriantu...@gmail.com wrote: I forgot of the my image. On Fri, Jul 16, 2010 at 9:10 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hi... I tried the

Re: [Matplotlib-users] where to find python eggs for matplotlib 1.0.0?

2010-07-17 Thread Benjamin Root
On Sat, Jul 17, 2010 at 6:14 AM, Pavlo Shchelokovskyy shchelokovs...@gmail.com wrote: Hi all, on my workplace I use matplotlib in restricted Windows environment. Since couple of versions matplotlib Windows installer needs elevated user privileges to work (why?), but installation from Python

Re: [Matplotlib-users] where to find python eggs for matplotlib 1.0.0?

2010-07-17 Thread Benjamin Root
On Sat, Jul 17, 2010 at 12:46 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jul 17, 2010 at 6:14 AM, Pavlo Shchelokovskyy shchelokovs...@gmail.com wrote: Hi all, on my workplace I use matplotlib in restricted Windows environment. Since couple of versions matplotlib Windows installer

Re: [Matplotlib-users] Text alignment

2010-07-17 Thread Benjamin Root
On Fri, Jul 16, 2010 at 12:34 PM, Simon Friedberger simon+matplot...@a-oben.org simon%2bmatplot...@a-oben.org wrote: Hello List. Is it just me or does the alignment in the picture at http://matplotlib.sourceforge.net/users/text_props.html look off? Best Simon Maybe. To me, the rotated

Re: [Matplotlib-users] Matching 3D axes size to 2D in mixed subplot

2010-07-18 Thread Benjamin Root
On Thu, Jul 15, 2010 at 9:13 PM, Jeff Berry jjbe...@email.arizona.eduwrote: Hi, I'm using the new mixed axes feature in matplotlib 1.0.0 to combine 3D and 2D plots in a single figure. The problem is that the 3D axes have a lot of extra white space around them that prevents the plot to line

Re: [Matplotlib-users] radar_chart in matplotlib doc does not work

2010-07-19 Thread Benjamin Root
On Thu, Jul 15, 2010 at 2:44 PM, texas_ranger dwba...@gmail.com wrote: The source code for radar_chart.py located in the Matplotlib docs at http://matplotlib.sourceforge.net/examples/api/radar_chart.html?highlight=radar%20chart does not work. Seems to be problem with legend. Can someone

Re: [Matplotlib-users] problem with twinx and autofmt_xdate

2010-07-19 Thread Benjamin Root
On Wed, Jul 14, 2010 at 4:54 AM, Robert Hancock r...@agelada.co.uk wrote: Hi I am trying to use autofmt_xdate() on graphs with more than 1 y-axis. But it seems that even calling twinx() causes errors. On python 2.5 matplotlib 0.98 a call to twinx() seems to switch off the functioning of

Re: [Matplotlib-users] centering xticks in bar plot

2010-07-19 Thread Benjamin Root
On Mon, Jul 19, 2010 at 9:55 AM, Bala subramanian bala.biophys...@gmail.com wrote: Friends, Attached a script test.py and 2 data files using with which i am trying to make a bar plot. The output is coming nice, but the x-ticks are placed at the left edge of the first bar. I want to make the

Re: [Matplotlib-users] Double y-axis with the same 0

2010-07-20 Thread Benjamin Root
Somehow, this doesn't seem very satisfying. It is almost accidental. There has to be a better way to do this. Ben Root 2010/7/20 Thøger Emil Juul Thorsen thoe...@fys.ku.dk One way is to specify the axes manually, e.g. setting: (with matyplotlib.pyplot importad as plt:) plt.axis([200,

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-22 Thread Benjamin Root
On Wed, Jul 21, 2010 at 3:40 PM, Jenna Lemonias je...@astro.columbia.eduwrote: I am trying to save a matplotlib 2d array image with an overlaid contour as an eps file. The contour appears to be shifted with respect to the image underneath in the eps file, particularly when I zoom in on the

Re: [Matplotlib-users] Axises autoscaling in animated plot

2010-07-22 Thread Benjamin Root
On Thu, Jul 22, 2010 at 3:30 AM, aliko ali.tli...@gmail.com wrote: Could please anyone help me to get axises autoscaling in following example? I took it from the examples and slightly modified it to remove all unecessary things trying to make it as short as possible. Thanks in advance!

Re: [Matplotlib-users] Plot moves while using the Zoom to rectangle button

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 12:17 PM, João Luís Silva jsi...@fc.up.pt wrote: On 07/13/2010 02:31 AM, John Hunter wrote: On Mon, Jul 12, 2010 at 8:05 PM, John Hunterjdh2...@gmail.com wrote: All of which is discouraging: we both see bugs but different ones on linux, the appearance of the bug is

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 7:18 AM, arsbbr ars...@gmx.net wrote: Hi, i'm trying to make a simple 3d plot of a cylinder with plot_surface. There are two problems in my output: 1) the shading, shading does not work on the cylindric shell and at the same time produces weird artifacts on the top

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 2:46 PM, arsbbr ars...@gmx.net wrote: Thank you for looking into it! It would be perfectly fine for me to merge the two objects, so that one surface_plot command will do it. Maybe someone can give me a hint how to accomplish that? I appreciate any tips. Benjamin

Re: [Matplotlib-users] tk development and mpl

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 3:22 PM, Satish Raghunath qgu...@my.utsa.eduwrote: Hi, Can anyone please tell me about the tk development packages. Where can I find the tk development packages . I am using the following operating system *Red Hat Enterprise Linux Client release 5.3 (Tikanga)*

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-25 Thread Benjamin Root
On Sun, Jul 25, 2010 at 5:19 AM, arsbbr ars...@gmx.net wrote: Thanks, this was quite a tiny weekend project for you :) I'll keep you tip in mind. Concerning the foreground/background issue: The problem here seems quite random. It does not depend on the viewing angle. I rather just have to

Re: [Matplotlib-users] error AttributeError: 'module' object has no attribute 'use'

2010-07-25 Thread Benjamin Root
On Sun, Jul 25, 2010 at 1:55 AM, Satish Raghunath qgu...@my.utsa.eduwrote: Hi I am getting this error* File aerialvision1.py, line 79, in module import startup File /home/satish/gpgpusim/gpgpu-sim_v2.1.1b/aerialvision/startup.py, line 68, in module import guiclasses File

Re: [Matplotlib-users] pygtk/pygtk.h: No such file or directory

2010-07-25 Thread Benjamin Root
On Sun, Jul 25, 2010 at 1:27 PM, Satish Raghunath qgu...@my.utsa.eduwrote: Hi I got this error when I was trying to build the matplot lib .src/backend_gdk.c:8:25: error: pygtk/pygtk.h: No such file or directory src/backend_gdk.c: In function âpixbuf_get_pixels_arrayâ:

Re: [Matplotlib-users] Plot moves while using the Zoom to rectangle button

2010-07-25 Thread Benjamin Root
On Sat, Jul 24, 2010 at 3:11 PM, John Hunter jdh2...@gmail.com wrote: On Sat, Jul 24, 2010 at 1:56 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jul 24, 2010 at 12:17 PM, João Luís Silva jsi...@fc.up.pt wrote: On 07/13/2010 02:31 AM, John Hunter wrote: On Mon, Jul 12, 2010 at 8:05

Re: [Matplotlib-users] Plot moves while using the Zoom to rectangle button

2010-07-25 Thread Benjamin Root
On Sun, Jul 25, 2010 at 5:04 PM, John Hunter jdh2...@gmail.com wrote: On Sun, Jul 25, 2010 at 3:14 PM, Benjamin Root ben.r...@ou.edu wrote: I tried a bunch of the animation examples and widget examples with and without the patch. I could not find one that was affected by this bug, however

Re: [Matplotlib-users] Import matplotlib.pyplot fails on windows XP

2010-07-26 Thread Benjamin Root
On Sat, Jul 24, 2010 at 4:57 AM, eck naysmith ecker...@hotmail.com wrote: Hello, I've installed the following Python packages on a Windows XP machine: Python 2.6.5 Python 2.6 numpy-1.4.1 Python 2.6 matplotlib-0.99.3 [installer - matplotlib-0.99.3.win32-py2.6] Python and Numpy work

Re: [Matplotlib-users] Documentation error/bug?

2010-07-26 Thread Benjamin Root
On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence josh.k.lawre...@gmail.comwrote: Hello, I looked on your website for the different line styles. In the documentation for matplotlib.lines.line2D.set_linestyle, the dashed linestyle is listed as '-' and not '--'. It it my understanding that

Re: [Matplotlib-users] rotating 3d axis

2010-07-26 Thread Benjamin Root
On Mon, Jul 26, 2010 at 2:50 PM, Mathew Yeates mat.yea...@gmail.com wrote: Hi Is there any way to let the user rotate a 3D plot? I don't see an example which does this. -Mathew What do you mean? By default, all 3D plots are rotatable by merely clicking and draging the plot around. Or are

Re: [Matplotlib-users] Documentation error/bug?

2010-07-26 Thread Benjamin Root
On Mon, Jul 26, 2010 at 9:49 AM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence josh.k.lawre...@gmail.comwrote: Hello, I looked on your website for the different line styles. In the documentation for matplotlib.lines.line2D.set_linestyle, the dashed

Re: [Matplotlib-users] Bypass keyboard navigation

2010-07-26 Thread Benjamin Root
On Mon, Jul 26, 2010 at 3:09 PM, David Mashburn david.n.mashb...@gmail.comwrote: Hello! My name is David Mashburn, and I have been a very happy user of matplotlib for almost 5 years now, so let me start by saying thank you for this wonderful piece of software! I has been a blessing to me!

Re: [Matplotlib-users] Case stories of software including Matplotlib

2010-07-27 Thread Benjamin Root
On Tue, Jul 27, 2010 at 6:01 AM, German Ocampo geroca...@gmail.com wrote: Good morning Do you know where I could get examples of case stories about commercial or open source software that has been developed using the Matplotlib library? Many Thanks German German, Interesting idea.

Re: [Matplotlib-users] Axes3D depth problem

2010-07-27 Thread Benjamin Root
On Tue, Jul 27, 2010 at 2:25 PM, copyrig...@gmx.de wrote: Hallo, I got a depth problem with Axes3D. I made a plot_surface and add 2 Circle object with add_patch and mpl_toolkits.mplot3d.art3d.patch_2d_to_3d. The problem is that the circles are always in front. I upload a picture here

Re: [Matplotlib-users] Axes3D depth problem

2010-07-27 Thread Benjamin Root
) p=Circle((0,0),ri,color=red) ax.add_patch(p) art3d.patch_2d_to_3d(p, z=0, zdir=y) ax.set_ylim3d(-0.5, l+.5) ax.set_xlim3d(-l*0.5-0.5, l*0.5+0.5) ax.set_zlim3d(-l*0.5-0.5, l*0.5+0.5) plt.show() #CODE greetz Frank Am 27.07.2010 21:36, schrieb Benjamin Root: On Tue, Jul 27, 2010

Re: [Matplotlib-users] Documentation error/bug?

2010-07-28 Thread Benjamin Root
On Tue, Jul 27, 2010 at 1:31 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/7/26 Benjamin Root ben.r...@ou.edu: After some reading of sphinx documentation, it appears to be a bug with sphinx (or actually, smartypants) because it should not be doing this sort

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Benjamin Root
On Wed, Jul 28, 2010 at 2:39 PM, Angus McMorland amcm...@gmail.com wrote: On 28 July 2010 15:25, Waléria Antunes David waleriantu...@gmail.com wrote: Hello all, Well, my problem is ... My current code is as follow bellow: http://pastebin.com/7p2N5d64 Hi Waléria, We can't easily fix

Re: [Matplotlib-users] Arrow in log space

2010-07-28 Thread Benjamin Root
On Wed, Jul 28, 2010 at 3:56 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi, How does one plot an arrow in a log log plot? In the following example, I can't get the arrow head, regardless of what value I use for the head width: import matplotlib as mpl mpl.use('Agg') import

Re: [Matplotlib-users] share axis and rotate subplot

2010-07-29 Thread Benjamin Root
On Thu, Jul 29, 2010 at 10:07 AM, Matthias Michler matthiasmich...@gmx.netwrote: On Thursday July 29 2010 12:05:24 Bala subramanian wrote: Friends, I wrote a small script to plot a data and its pdf in single figure but as two subplots. 1) However i want to share xaxis of ax2 (subplot

  1   2   3   4   5   6   7   8   9   10   >