Hi,
I tried to run the dynamic_collections.py example in the source
directory (SVN revision 5002) but got the following error:
Traceback (most recent call last):
File "dynamic_collection.py", line 23, in
transOffset = ax.transData,
TypeError: __init__() got multiple values for keyword ar
You can choose the kind of interpolation that gets used:
* interpolation is one of:
'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
'catrom', 'gaussian', 'bessel', 'm
Christian Lerrahn wrote:
> Hi,
> I'm plotting some 2D grid data using imshow(). However, one of my test
> problems involves a Gaussian peak in the center of my grid. For some
> strange reason this Gaussian looks like 5 distinct peaks. It looks like
> the values are only set at the centers of my gri
Hi,
I'm plotting some 2D grid data using imshow(). However, one of my test
problems involves a Gaussian peak in the center of my grid. For some
strange reason this Gaussian looks like 5 distinct peaks. It looks like
the values are only set at the centers of my grid cells and then the
colour gradien
Eric Firing wrote:
>
> The transforms can be modified at drawing time, so you need to get the
> pixel locations after the plot has been drawn. Are you doing this?
Eric,
Thank you! I put the transforms after savefig() and it works like a
champ now.
Rich
-
It sounds like what you want it the pyplot figlegend command:
def figlegend(handles, labels, loc, **kwargs):
"""
Place a legend in the figure. Labels are a sequence of
strings, handles is a sequence of line or patch instances, and
loc can be a string r an integer specifying the
Rich,
The transforms can be modified at drawing time, so you need to get the
pixel locations after the plot has been drawn. Are you doing this?
Eric
Rich Fought wrote:
> Rich Fought wrote:
>> I'm plotting some grid data using pcolor, and trying to get canvas pixel
>> locations of data points
Chris Withers wrote:
> Hi All,
>
> How do I go about showing minor ticks as lines across the whole plot, as
> opposed to just little ticks at the side?
>
> I can get the major ticks to show by doing grid(True), but how do I get
> the same effect for minor ticks?
Try
grid(True, which='minor')
Chris Withers wrote:
> Eric Firing wrote:
>> Chris,
>>
>> Use masked arrays. See masked_demo.py in the mpl examples subdirectory.
>
> Hi Eric,
>
> I took a look at that, but it uses:
>
> import matplotlib.numerix.npyma as ma
>
> ...and matplotlib.numerix isn't listed in the API reference. Wher
Matthias Michler wrote:
> sorry I don't understand what you are exactly looking for. Maybe you could
> explain it once more.
Well, what you provided was pretty close, it's just that the legend was
partly placed outside the figure...
> In general I think all one can do is to play around with th
Hi All,
How do I go about showing minor ticks as lines across the whole plot, as
opposed to just little ticks at the side?
I can get the major ticks to show by doing grid(True), but how do I get
the same effect for minor ticks?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python
Matthias Michler wrote:
> you can try xlabel of an empty string:
>
> xlabel(' ')
Thanks, and yes, a truly empty string xlabel(''), works :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
Hello Bernhard and others -
I tried all the options, but nothing works.
Whenever I type a greek symbol in mathtext and save the figure as eps, the
greek symbols don't show up. Confirmed on several windows machines. Python
2.4. mpl 0.91.2. (but it worked fine under 0.90.1). Does anybody else have
Hi Chris,
sorry I don't understand what you are exactly looking for. Maybe you could
explain it once more.
In general I think all one can do is to play around with the parameters
in 'subplots_adjust' and the location in 'legend' to get the best result.
I'm not an expert but I think there's no
Hello Chris,
you can try xlabel of an empty string:
xlabel(' ')
regards
Matthias
On Monday 17 March 2008 17:11, Chris Withers wrote:
> Hi All,
>
> I'm using plot_date to plot some dates, but this sets an xlabel, and I
> don't want the plot to have an xlabel.
>
> How do I remove it?
>
> I tried
Hi Matthias,
Matthias Michler wrote:
> I'm not sure if there was an example in matplotlib, but the following works
> for me:
> -
> from pylab import *
> figure()
> subplot(111)
> subplots_adjust(right=0.7)
> plot(arange(10), labe
Hi All,
I'm using plot_date to plot some dates, but this sets an xlabel, and I
don't want the plot to have an xlabel.
How do I remove it?
I tried:
xlabel(None)
...but that just set the xlabel to 'None'...
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
Rich Fought wrote:
> I'm plotting some grid data using pcolor, and trying to get canvas pixel
> locations of data points using the
>
> ax.transData.xy_tup()
>
> method. I am saving these figures to PNG files using the default Agg
> backend. When I open these images up in Gimp and check the pixe
Hello Chris,
I'm not sure if there was an example in matplotlib, but the following works
for me:
-
from pylab import *
figure()
subplot(111)
subplots_adjust(right=0.7)
plot(arange(10), label='linear')
plot(arange(10)**2, label='q
Hi All,
I'm wondering what work people have done with matplotlib in
multi-threaded environments such as your average python web framework.
Is matplotlib threadsafe?
How have people gone about safely using it in a multi-threaded environment?
cheers,
Chris
--
Simplistix - Content Management,
Hi All,
How would I go about placing the legend outside the plot area?
All the parameters to legend seem to place the legend somewhere within
the plot and I'd like to place it outside the plot, either above, below
or, most commonly, to the right, in the same way as the Excel legend
positions a
Eric Firing wrote:
> Chris,
>
> Use masked arrays. See masked_demo.py in the mpl examples subdirectory.
Hi Eric,
I took a look at that, but it uses:
import matplotlib.numerix.npyma as ma
...and matplotlib.numerix isn't listed in the API reference. Where are
the docs for this?
Specifically,
22 matches
Mail list logo