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:
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
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
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
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
')
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
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
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:
\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
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
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
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
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
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.
--
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
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
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
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,
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,
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
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
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
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
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)
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
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
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()
27 matches
Mail list logo