Re: [Matplotlib-users] question about axis scale multiplier

2010-04-30 Thread Eric Firing
Margherita Vittone wiersma wrote: > HI, > i am making a scatter plot and i simply use defaults for tick formatting etc; > when i plot the data the plot show on the x axis a multiplier scaling with > scintific notation; > i would like to get rid of it , the data looks like this: > > values5 = > [

[Matplotlib-users] question about axis scale multiplier

2010-04-30 Thread Margherita Vittone wiersma
HI, i am making a scatter plot and i simply use defaults for tick formatting etc; when i plot the data the plot show on the x axis a multiplier scaling with scintific notation; i would like to get rid of it , the data looks like this: values5 = [-102.44,-102.51,-102.47,-102.52,-102.52,-102.51,-1

Re: [Matplotlib-users] legend won't work with dashed lines

2010-04-30 Thread Michael Droettboom
The following works for me. from pylab import * plot([1,2,3], linestyle='dashed', label='foo') legend() show() Can you be more specific about how you create the error? Mike Carlos Grohmann wrote: > Hi all, > > I'm wirking on a wxpython app, and I realized that the legend of a > mat

[Matplotlib-users] legend won't work with dashed lines

2010-04-30 Thread Carlos Grohmann
Hi all, I'm wirking on a wxpython app, and I realized that the legend of a matplotlib plot only works with solid lines. If I change the linestyles to dashed, dotted or dashdot, it gives an error: Traceback (most recent call last): File "/home/guano/Arbeit/Stout/StereoPanel.py", line 551, in Plo

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-30 Thread T J
On Fri, Apr 30, 2010 at 1:55 AM, Eric Firing wrote: > > I don't see this in the version as I changed it in svn r8282.  Are you sure > you installed and built from svn after I made the change?  Using the > attached script,  I get the two attached (gzipped) eps files. The first with > transparent=Tr

Re: [Matplotlib-users] MPL uses character not defined by cmr10?

2010-04-30 Thread Michael Droettboom
Michael Droettboom wrote: > I wasn't aware of these fonts -- we may want to consider distributing > them with matplotlib instead (assuming the licensing makes sense) as it > would greatly simplify the mathtext code. Of course, that's a project I > may not have time for right now. > On furthe

[Matplotlib-users] Strange behaviour for zooming.

2010-04-30 Thread sathish kumar
Hi , I have to build custom tool bar with a single button which zooms-in /zooms- out. I did by setting new limit with and I redraw the figure. I used to work in Axes coordinate system instead of data coordinate system. when I have to zoom I convert axes points to data coordinate system and set n

[Matplotlib-users] how to display value for each date in line chart or pie chart? (show y axis's value)

2010-04-30 Thread pclovec
i want to display the value for each date , now i have 3 date value , but in chart it cannot show the value, in chart can show 12,45,67 Thanks source figure(2) x=[4,5,6] y=[12,45,67] line,= plt.plot(x,y,label="aaa",color="red",linewidth=1,linestyle='|dashed', marker='o',c='b') xticks(arange(1

Re: [Matplotlib-users] Horizontal and vertical lines between subplots

2010-04-30 Thread Maxime Bois
Hi Jae-Joon This method is also great and it's working with plt.subplot: from pylab import * subplot(221) subplot(222) subplot(223) subplot(224) plot([0.5, 0.5], [0, 1], color='lightgreen', lw=5,transform=gcf().transFigure, clip_on=False) plot([0, 1], [0.5, 0.5], color='lightgreen', lw=5,transf

Re: [Matplotlib-users] Labels end up outside figure

2010-04-30 Thread Jae-Joon Lee
On Thu, Apr 29, 2010 at 12:40 PM, acoffeemug wrote: > Does anyone know a good fix for this? Preferably one which doesn't involve > manual resizing? http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels While example in the link try to make a room for tickla

Re: [Matplotlib-users] Horizontal and vertical lines between subplots

2010-04-30 Thread Jae-Joon Lee
You may do this without creating an extra axes (ax0). Try something like ax4.plot([0.5, 0.5], [0, 1], color='lightgreen', lw=5, transform=gcf().transFigure, clip_on=False) Regards, -JJ On Fri, Apr 30, 2010 at 3:56 AM, Matthias Michler wrote: > On Wednesday 28 April 2010 15:07:21 Maxi

Re: [Matplotlib-users] MPL uses character not defined by cmr10?

2010-04-30 Thread Michael Droettboom
I wasn't aware of these fonts -- we may want to consider distributing them with matplotlib instead (assuming the licensing makes sense) as it would greatly simplify the mathtext code. Of course, that's a project I may not have time for right now. I'll look into the case-sensitivity issue -- I'

[Matplotlib-users] Strange behaviour for zooming.

2010-04-30 Thread sathish kumar
Hi , I have to build custom tool bar with a single button which zooms-in /zooms- out. I did by setting new limit with and I redraw the figure. I used to work in Axes coordinate system instead of data coordinate system. when I have to zoom I convert axes points to data coordinate system and set n

Re: [Matplotlib-users] Horizontal and vertical lines between subplots

2010-04-30 Thread Maxime Bois
Hi Matthias, This is exactly what I wanted to do (excepted for the colors of the lines which are quite horrible :-) ) Thanks a lot Cheers, Maxime On 04/30/2010 09:56 AM, Matthias Michler wrote: On Wednesday 28 April 2010 15:07:21 Maxime Bois wrote: Hi all, I have created a figure wit

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-30 Thread Eric Firing
T J wrote: On Wed, Apr 28, 2010 at 12:22 PM, Eric Firing wrote: It's a bug, made more confusing by the trickery that is done when printing a figure. DPI, facecolor, and edgecolor that are set for a figure object are used only for screen display, and are overridden when the figure is saved. Th

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-30 Thread T J
On Wed, Apr 28, 2010 at 12:22 PM, Eric Firing wrote: > > It's a bug, made more confusing by the trickery that is done when printing a > figure.  DPI, facecolor, and edgecolor that are set for a figure object are > used only for screen display, and are overridden when the figure is saved. >  The ov

Re: [Matplotlib-users] Horizontal and vertical lines between subplots

2010-04-30 Thread Matthias Michler
On Wednesday 28 April 2010 15:07:21 Maxime Bois wrote: > Hi all, > > I have created a figure with 4 subplots (2x2) and I want to separate > them with a vertical and horizontal lines (see the green lines on my > figure edited by Gimp) but I don't know if it's possible (I haven't find > any example o