Hi Tony,
Thank you for the reply, the solutions you propose are fine in this
case. But I'm trying to use the polar plot
as a smith chart for an instrument and there i will receive data that is
unknown but can be something like this:
r = np.transpose(.1+np.arange ( 0 , 0.7 , 0.001))
theta = -4.5
Recently I noticed that the quiver plots all make the arrows as if the
plot had aspect ratio 1. See, for example, the documentation for quiver:
In all cases the arrow aspect ratio is 1, so that if *U*==*V* the
angle of the arrow on the plot is 45 degrees CCW from the *x*-axis.
This seems
Adjusting a physical size of the axes is a bit tricky in matplotlib,
as the axes has an fixed position in normalized figure coordinate.
But, I guess setting the axes aspect ratio in physical size is doable
relatively easily, at least if your x,y axis are in linear scales. For
example, if you want
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
xy = 0.3, 0.3,
width, height = 0.2, 0.5
p = mpatches.Rectangle(xy, width, height, facecolor="orange", edgecolor="red")
plt.gca().add_patch(p)
plt.draw()
A Rectangle is a patch class and (although I'm not sure) I don't think
I'm having trouble plotting data with NaN values. My plot has lines and
markers and usually both are skipped for NaN values. But when I have
more than 127 data a line is drawn from the last non-NaN to the next.
I read somewhere about a similar issue (maybe here? sorry I can't find
it just now), it
On Wed, Sep 17, 2008 at 12:55:40PM -0700, Ted Drain wrote:
> I agree completely - I was just pointing that it is possible. I think what
> people might not be aware of is that it's really an all or nothing
> proposition. You either jump in completely and pay the large cost to handle
> this in a ma
Josef,
I too have been interested in such a feature for matplotlib and have
made some (albeit lame) stabs at finding a solution. I started a
project on google code that has some very limited capacity to save line
plots and the necessary data arrays from matplotlib into an hdf5 file for later
p
I agree completely - I was just pointing that it is possible. I think what
people might not be aware of is that it's really an all or nothing
proposition. You either jump in completely and pay the large cost to handle
this in a maintainable, scalable way or don't do it at all. All of the
"quick
Ted Drain wrote:
> We have some experience maintaining persistent object storage over long
> periods of time. The best solution we've found is to do something like
> this:
>
> - create a read/write method on each class. Every class that needs to be
> stored must have this. This includes class y
I would like to ensure that the axes on a plot I'm making are square
in the sense of how the axes appear in the figure. I tried using
ax.set_aspect(1) , but that squares the axes in data coordinates,
rather than in figure coordinates. So aside from generating a figure
that is always square (which
Hi. I'd like to add a filled area on my graph to denote the standard
deviation from an average. Additionally, i'd prefer the fill to be a
diagonal hatch. Reading online, i found that there is a 'Rectangle' class,
but i can't get this to work. Can someone suggest a good way to get the
results i'
John Hunter wrote:
> On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <[EMAIL PROTECTED]> wrote:
>
>
>> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the
>> axes border. The black horizontal line is the top axes border, the
>> horizontal grey line is the artifact, the vertical
On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the
> axes border. The black horizontal line is the top axes border, the
> horizontal grey line is the artifact, the vertical dashed line is a
> grid line.
e code snippet is here:
>>> http://snipplr.com/view/8307/map-plotting-python-code-temporary/
>>>
>>> The only problem I have is now a grey line surrounding the plot, as you can
>>> see in this low-res sample:
>>> http://www.kirikoo.net/images/5shrad-20080
lotting-python-code-temporary/
>>
>> The only problem I have is now a grey line surrounding the plot, as you can
>> see in this low-res sample:
>> http://www.kirikoo.net/images/5shrad-20080917-151205.png
>>
>
> Antoine: Sorry, but I don't see it.
There is a v
I believe that "set" function in matplotlib has been deprecated
(because "set" is now python builtin). Instead, you have to use
"setp".
Setting "xticks" (or "yticks") changes the tick locations. If you're
trying to turn off only the labels, you may use use
setp(gca().get_yticklabels(), visible=F
On Sep 17, 2008, at 1:59 AM, jan gillis wrote:
> Hello,
>
> I have a problem with polar plot, if i run the following code in
> matplotlib 0.98.3, polar plot is drawing a extra circle to go from
> angle -3.14159265 to angle 3.03753126. Is there a solution for this
> problem?
>
> **
ou can
> see in this low-res sample:
> http://www.kirikoo.net/images/5shrad-20080917-151205.png
>
Antoine: Sorry, but I don't see it.
> I have added zero-value points at the corners of the map, thinking that
> interpolation simply didn't do its job between the points bec
Hi all,
Actually this is more like two problems :-)
I am trying to turn off the yaxis labels on the right hand side figure
generated via subplot. After some trial and error it seems that I should
be able to change these settings using the set command. For example you
should be bale to do the
/images/5shrad-20080917-151205.png
I have added zero-value points at the corners of the map, thinking that
interpolation simply didn't do its job between the points because of a lack
of data, but it's still the same
The masked array has been replaced with a "replace by zero if superior to
Firing; Jeff Whitaker; Matplotlib Users
> Subject: Re: [Matplotlib-users] Information request
>
> On Wed, Sep 17, 2008 at 3:28 AM, De Pauw Antoine <[EMAIL PROTECTED]>
wrote:
>
>
>> The image generated is here:
>> http://www.kirikoo.net/images/5shrad-20080917-10254
:00
> To: De Pauw Antoine
> Cc: Eric Firing; Jeff Whitaker; Matplotlib Users
> Subject: Re: [Matplotlib-users] Information request
>
> On Wed, Sep 17, 2008 at 3:28 AM, De Pauw Antoine <[EMAIL PROTECTED]> wrote:
>
>
>> The image generated is he
te:
> The image generated is here:
> http://www.kirikoo.net/images/5shrad-20080917-102544.png
>
> Also, I couldn't find any way to reduce the colorbar font size
The colorbar method returns a matplotlib.colorbar.Colorbar instance,
which has matplotlib.axes.Axes instance stored as an
On Wed, Sep 17, 2008 at 3:28 AM, De Pauw Antoine <[EMAIL PROTECTED]> wrote:
> The image generated is here:
> http://www.kirikoo.net/images/5shrad-20080917-102544.png
>
> Also, I couldn't find any way to reduce the colorbar font size
The colorbar method returns a matpl
t mail, except
the masked array which is, I think, straightforward for most of you
Now I have scattered data on my map, antialiased and so, but it still needs
some smoothing as it still looks very pixelated (that is due to the
satellite coverage)
The image generated is here:
http://www.kirikoo.n
25 matches
Mail list logo