Re: [Matplotlib-users] _legmarker attribute error in in legend using vlines

2009-10-16 Thread Jae-Joon Lee
I guess this is a known bug and already fixed. Maybe ubuntu 9.4 sheeps with the older version though (the bug was fixed in this January, so, I'm not sure). http://www.nabble.com/unable-to-create-legend-for-vlines-graph-td21707558.html#a21707558 You may try to install the latest version. Or you ma

[Matplotlib-users] _legmarker attribute error in in legend using vlines

2009-10-16 Thread Michael Waters
When I try to make a legend after using the vlines command, I get a _legmarker error. my code: / plot(two_theta,y_value_list_1) vlines(two_theta,[0],y_value_list_2,linewidth = 2) legend(['1','2'])/ the error: /Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib

Re: [Matplotlib-users] Is there an easy way to turn on automatic subticks?

2009-10-16 Thread Michael Waters
Ryan May wrote: > On Fri, Oct 16, 2009 at 12:23 PM, Michael Waters wrote: > >> I am making regular Cartesian coordinate graphs with linear scales on >> the axis. I would really like to have automatic subticks to make reading >> data easier. Is there an easy way to do this? >> > > Yes, you

[Matplotlib-users] plotting normalized histograms

2009-10-16 Thread per freem
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 like this: plt.subplot(2, 2, 1) # histogram of first column plt.hist(mydata[

[Matplotlib-users] Cleaver way to do a scrolling imshow?

2009-10-16 Thread Laurent Dufrechou
Hello, I'm investigating a way to make a sort of imshow that is scrolling from right to left. My idea is to copy in a blit buffer from (1,0) to (xmax,ymax). Blit it @(0,0) (xmax-1,ymax) And then draw a cmap'ed line @x=xmax. So here are my question: How to draw a line that use a cmap=jet

[Matplotlib-users] TR: Cleaver way to do a scrolling imshow?

2009-10-16 Thread Laurent Dufrechou
Hello, I'm investigating a way to make a sort of imshow that is scrolling from right to left. My idea is to copy in a blit buffer from (1,0) to (xmax,ymax). Blit it @(0,0) (xmax-1,ymax) And then draw a cmap'ed line @x=xmax. So here are my question: How to draw a line that use a cmap=jet

Re: [Matplotlib-users] [matplotlib-devel] AutoDateFormatter/AutoDateLocator

2009-10-16 Thread Pierre GM
On Oct 16, 2009, at 2:59 PM, Ryan May wrote: > On Wed, Oct 14, 2009 at 3:59 PM, John Hunter > wrote: >> I don't have a strong opinion on this -- making it more customizable >> is a good thing -- this came up at scipy as well, where I contributed >> a patch to make the AutoDateFormatter a littl

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-16 Thread Laurent Dufrechou
Bug reported: https://sourceforge.net/tracker/index.php?func=detail&aid=2880692&group_id=80706&atid=560720 Does anybody where I could dig a little to try to correct it? It a really needed feature for me, so if I could help... Cheers, Laurent > -Message d'origine- > DeĀ : Jae-Joon Lee [ma

Re: [Matplotlib-users] Is there an easy way to turn on automatic subticks?

2009-10-16 Thread Ryan May
On Fri, Oct 16, 2009 at 12:23 PM, Michael Waters wrote: > I am making regular Cartesian coordinate graphs with linear scales on > the axis. I would really like to have automatic subticks to make reading > data easier. Is there an easy way to do this? Yes, you just need to set a locator for the mi

[Matplotlib-users] Is there an easy way to turn on automatic subticks?

2009-10-16 Thread Michael Waters
I am making regular Cartesian coordinate graphs with linear scales on the axis. I would really like to have automatic subticks to make reading data easier. Is there an easy way to do this? Thanks -mike w. -- Come build

Re: [Matplotlib-users] all fonts to sans-serif?

2009-10-16 Thread Darren Dale
On Thu, Oct 15, 2009 at 10:38 AM, Christian Meesters wrote: > Hi, > > I'd like to have all sub-fonts (labels, tick labels, text) sans-serif > for a series of plots per default. However the appropriate settings > in .matplotlibrc apparently don't work and this also does not work: > > import matplot

Re: [Matplotlib-users] Problem with hist

2009-10-16 Thread Axel Gembe
Axel Gembe wrote: > Hi, I need to know why the attached code works in one case and takes > forever to run in the other one. > I don't think I've done anything wrong and I tried everything that > came to my mind now. > If you use "x1 = mu + sigma * np.random.randn(1000)" instead of "x1 = > np.arr

Re: [Matplotlib-users] how to customize informations given by the navigation toolbar ?

2009-10-16 Thread LB
Seems that the following lines did the trick with matplotlib 0.91.2 xy_pixel = self.a3.transData.xy_tup((x3,y3)) x1, y1 = self.a1.transData.inverse_xy_tup(xy_pixel) Thanks 2009/10/16 LB > It would be very fine to me, but unfortunately, I have to use matplotlib > 0.91.2. > Is the

[Matplotlib-users] Problem with hist

2009-10-16 Thread Axel Gembe
Hi, I need to know why the attached code works in one case and takes forever to run in the other one. I don't think I've done anything wrong and I tried everything that came to my mind now. If you use "x1 = mu + sigma * np.random.randn(1000)" instead of "x1 = np.array([np.float64(val / 2.0) for

Re: [Matplotlib-users] how to customize informations given by the navigation toolbar ?

2009-10-16 Thread LB
It would be very fine to me, but unfortunately, I have to use matplotlib 0.91.2. Is there a way to adapt this to the old transform API ? Thanks -- LB -- Come build with us! The BlackBerry(R) Developer Conference in SF, C

[Matplotlib-users] contour plot for newbie

2009-10-16 Thread fra_ra...@libero.it
Hi to all, I'm trying to make a contour plot from the beginning, I mean from a 3 column data file X,Y,Z, but I don't know how to do it without, e.g., origin and I want to use and to learn better matplotlib. what's the first thing to do? I imagine something like gridding data, but I've done a lo