[Matplotlib-users] xticks and yticks on central axis

2008-07-19 Thread Bryan Fodness
I would like the xticks and yticks on the central axis to look like the attached png. Right now, I am just using axvline and axhline. -- The game of science can accurately be described as a never-ending insult to human intelligence. - João Magueijo attachment:

[Matplotlib-users] Rotating an axes instance

2008-06-19 Thread Bryan Fodness
I have an axes instance that I would like to rotate. I see that there is a rotation keyword for text and would like to do something like that with a plot. Is this possible. -- The game of science can accurately be described as a never-ending insult to human intelligence. - João Magueijo Any

[Matplotlib-users] Rotating an axes instance

2008-06-18 Thread Bryan Fodness
I have an axes instance that I would like to rotate. I see that there is a rotation keyword for text and would like to do something like that with a plot. - Check out the new SourceForge.net Marketplace. It's the best place

[Matplotlib-users] Posting to Numpy and Scipy

2008-06-17 Thread Bryan Fodness
Has anyone had a problem posting to either of these mailing lists. I am a member and have sent a few posts to each of them over the last couple months, but none of them show up in the list. I always receive a 'awaiting moderator approval' email. I have sent an email to the owner about this, but

Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-09 Thread Bryan Fodness
with the patches.Polygon constructor, which is used by the fill command. Eric Bryan Fodness wrote: It seems like it does not connect the last point to the first point. This also happens with the matplotlib.patches Polygon. from pylab import fill, xlim, ylim, savefig x1, x2, y1, y2 = -4, 4, -4

Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-05 Thread Bryan Fodness
') On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing [EMAIL PROTECTED] wrote: Bryan Fodness wrote: I just upgraded to 0.98.0 and recreated a few graphs. I am missing parts of the edges of a fill and polygon. Any suggestions? Please post an illustrative script, as simple as possible. Eric

[Matplotlib-users] fill function

2008-06-05 Thread Bryan Fodness
Is there a way to get the underlying array that the fill function uses to graph a polygon? This is assuming that it uses an array. I would like to be able to multiple an array by an array that describes the polygon (one if inside the polygon and zero if outside) -- The game of science can

[Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-04 Thread Bryan Fodness
I just upgraded to 0.98.0 and recreated a few graphs. I am missing parts of the edges of a fill and polygon. Any suggestions? -- The game of science can accurately be described as a never-ending insult to human intelligence. - João Magueijo attachment:

Re: [Matplotlib-users] using facecolor='None' for fill on Windows and Fedora

2008-05-16 Thread Bryan Fodness
\n%s' % (str(arg), exc)) ValueError: to_rgb: Invalid rgb arg None invalid literal for float(): None Does anyone have an idea? It works in Windows. On Fri, May 9, 2008 at 5:18 PM, Eric Firing [EMAIL PROTECTED] wrote: Bryan Fodness wrote: i have used this command on windows vista with no problem

Re: [Matplotlib-users] using facecolor='None' for fill on Windows and Fedora

2008-05-16 Thread Bryan Fodness
might try using locate pylab.py to find out where the various versions are. Eric Bryan Fodness wrote: I have updated to matplotlib 0.92.1 and numpy 1.0.4 and still receive an error. /space/work/Bryan$ ./Check_0.1.py http://check_0.1.py/ http://Check_0.1.py http://check_0.1.py/ Traceback

Re: [Matplotlib-users] using facecolor='None' for fill on Windows and Fedora

2008-05-16 Thread Bryan Fodness
Thanks for your help! I was forcing it to look in an old location with, #!/usr/bin/python as my first line. On Fri, May 16, 2008 at 1:44 PM, Bryan Fodness [EMAIL PROTECTED] wrote: i didn't have 0.92.1, i have 0.91.2 [bryan@ ~]$ python Python 2.5.2 (r252:60911, May 13 2008, 22:14:05

[Matplotlib-users] using fill, but really need a box

2008-05-09 Thread Bryan Fodness
i have been using the fill function to highlight a region on my plot, but now i do not want it to be filled. i have tried using alpha=0.1, but that also makes my edgecolor transparent. is there a box function that does not fill a region yet still has the outline of the box. i tried using

[Matplotlib-users] using facecolor='None' for fill on Windows and Fedora

2008-05-09 Thread Bryan Fodness
i have used this command on windows vista with no problem. fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') but when i run on fedora 8, i receive the following. (most recent call last): File ./program.py, line 361, in module savefig(outfile) File

[Matplotlib-users] Rotating an axes

2008-05-08 Thread Bryan Fodness
Can someone tell me if there is a way to rotate an axes instance? I have, figure(1) ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95') ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='white') and I would like to rotate ax2 30 degrees. It would look something like the attached file. --

[Matplotlib-users] Drawing shapes outside the plot area

2008-05-06 Thread Bryan Fodness
I would like to be able to draw a triangle on the graph outside the axes and plot area. I have used fill before, but that was in the plot area. Can someone push me in the right direction? -- The game of science can accurately be described as a never-ending insult to human intelligence. - João

[Matplotlib-users] Fwd: speed of clearing and creating a new array

2008-04-08 Thread Bryan Fodness
I am starting with a zero array, populate it according to some condition, save the graph, and then reset the array to zero. Can someone tell me if there is a better (faster) way to do this? Or am I just doing that much, and that is how long it will take? I have a couple hundred graphs that I am

[Matplotlib-users] Rotating data in graph

2008-01-18 Thread Bryan Fodness
Is there an easy way to rotate the view of the data in a graph window without changing the axis and titles. I only need the option for 90, 180, and 270 degrees. The window will always be symmetric. Bryan -- The game of science can accurately be described as a never-ending insult to human

[Matplotlib-users] plotting a pcolormesh and fill

2007-12-23 Thread Bryan Fodness
I have a pcolormest and a fill that are plotted on the same graph (they have the same scale). Is there an easy way to only plot the values of pcolormesh that lie in the fill? pcolormesh(oX, oY, test, shading='flat', cmap=cm.gray_r) fill([-x1,x2,x2,-x1], [-y1,-y1,y2,y2], 'b', alpha=0.2,

[Matplotlib-users] plotting a pcolormesh and a fill

2007-12-21 Thread Bryan Fodness
I have a pcolormest and a fill that are plotted on the same graph (they have the same scale). Is there an easy way to only plot the values of pcolormesh that lie in the fill? pcolormesh(oX, oY, test, shading='flat', cmap=cm.gray_r) fill([-x1,x2,x2,-x1], [-y1,-y1,y2,y2], 'b', alpha=0.2,

[Matplotlib-users] drawing a box

2007-12-18 Thread Bryan Fodness
I would like to draw a polygon using a x1, x2, y1, and y2. I tried to use axhline and axvline with the min and max values but it does give the desired result. It changes the axis limits and does not draw a line at all. Any help would be appreciated. Bryan -- The game of science can accurately

Re: [Matplotlib-users] drawing a box

2007-12-18 Thread Bryan Fodness
I do want a rectangle. And, I have tried, axvline(x=x1, ymin=y1, ymax=y2) axvline(x=x2, ymin=y1, ymax=y2) axhline(y=y1, xmin=x1, xmax=x2) axhline(y=y2, xmin=x1, xmax=x2) On Dec 18, 2007 10:40 PM, John Hunter [EMAIL PROTECTED] wrote: On Dec 18, 2007 9:00 PM, Bryan Fodness [EMAIL PROTECTED

Re: [Matplotlib-users] viewing my data correctly

2007-12-14 Thread Bryan Fodness
I would also like to get the area of the mesh element when I fill the corresponding array element. if a[1,0] area = 1.0 * 0.01 if a[30,0] area = 0.5 * 0.01 Is this possible? On Nov 26, 2007 7:02 PM, Eric Firing [EMAIL PROTECTED] wrote: Bryan Fodness wrote: Could someone give me

Re: [Matplotlib-users] viewing my data correctly

2007-12-14 Thread Bryan Fodness
it will read Leaf B. On Dec 14, 2007 9:09 PM, Eric Firing [EMAIL PROTECTED] wrote: Bryan Fodness wrote: I would also like to get the area of the mesh element when I fill the corresponding array element. if a[1,0] area = 1.0 * 0.01 if a[30,0] area = 0.5 * 0.01

[Matplotlib-users] colorbar and secondary axis label

2007-11-26 Thread Bryan Fodness
I would like to have my colorbar range from 0 to 1 and add a label (Leaf A) exactly like the Leaf B label on the other side of the y-axis. I have attached my .png -- from pylab import * #pcolor(n, shading='flat', cmap=cm.gray_r)

Re: [Matplotlib-users] viewing my data correctly

2007-11-26 Thread Bryan Fodness
should be one greater than those of C; if the dimensions are the same, then the last row and column of C will be ignored. Actually generating the mesh is up to you (wink), but hopefully that allows for what you need to do. Cheers, Mike Bryan Fodness wrote: I am wondering

[Matplotlib-users] viewing my data correctly

2007-11-25 Thread Bryan Fodness
I am wondering if there is a way to view my data with respect to the physical size of what my array element is suppose to be. I have an array that is 60 x 4000 where, the first row has a height of 1.4 the next nine has a height of 1 the next forty has a height of 0.5 the next nine

[Matplotlib-users] secondary axis same as primary with different label

2007-11-20 Thread Bryan Fodness
I would like to have a secondary y-axis that has the same scale, but a different label. Also, I would like to draw a dashed line down the center of the plot. I have used, ax1 = pcolor(a, shading='flat', cmap=cm.gray_r) title('Intensity Pattern') xlabel('Distance') ylabel('Leaf B') ax2=twinx()