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
<>--
Is there a way to get the colorbar to work with an axes instance.
ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w')
ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
ax2.pcolormesh(X, Y, newa, shading='flat', cmap=cm.YlOrRd)#gray_r)
ax2.axvline(x=0, color='gray', linestyle='--')
ax2.axhline(y=0
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 to
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
unk
> to restore the automatic closing of polygons made 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 th
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 ac
)
savefig('edge_test')
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?
>>
&g
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
<>--
I tried posting this to numpy, but my posts never show up. So, I was hoping
someone here might be able to help me.
I have two arrays that are different sizes and i would like to be able
to add them for plotting.
If I have an array a and b,
[[1 2 3 4 5 6 7 8 9]
[1 2 3 4 5 6 7 8 9]
[1 2 3 4 5 6
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
py for 0.92.1, it doesn't match your error message.
>
> What do you get when you do, from a python prompt:
>
> import matplotlib
> print matplotlib.__version__
>
> You might try using "locate pylab.py" to find out where the various
> versions are.
>
> Er
site-packages/matplotlib/colors.py", line 429, in
to_rgb
raise ValueError('to_rgb: Invalid rgb arg "%s"\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,
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
savefig(outfile)
File "/usr/lib/python2.5/site
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
pat
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 inte
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, edgecolor=
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, edgecolor=
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 <[EMA
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
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.0
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
Thank You! It works great.
On Nov 26, 2007 7:02 PM, Eric Firing <[EMAIL PROTECTED]> wrote:
> Bryan Fodness wrote:
> > Could someone give me an idea how to get started with this so it
> > coincides with my array of values. I took a look at the quadmesh_demo
> > in th
he dimensions of X and Y
> 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.
>
> Cheer
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)
contour
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()
y
I would like to use pcolor with the colors going from white (zero
values) to black (largest value).
I am using,
pcolor(a, shading = 'flat')
colorbar()
I do not see how to do this.
--
"The game of science can accurately be described as a never-ending
insult to human intelligence." - João Magu
31 matches
Mail list logo