Dear experts,
I am trying to plot spherical harmonics with matplotlib and I have some
troubles. I am starting from the example
http://matplotlib.org/examples/mplot3d/surface3d_demo2.html where I
change the factor 10 in a function of r=f(theta,phi) (or r=f(u,v) as
they are named in the
I tried to get the resizing working, but to no avail.
Without modifying your code, when you click on multiple squares, and then
resize, all the previously displayed squares are dawn, as if there was a
merge of all the previous blits...
Any idea ?
--
View this message in context:
Hi
thanks for the help, this is exactly what I needed. I updated the code in my
app and it worked.
Some minor observations though :
- This does not play well with tight_layout. I think tight_layout tries to
readjust the plots even after the singleShot call. So I needed to disable
it.
- I have
Hi Michka,
I haven't practiced PyQt for some time, but I think I remember there is
a common practice of using a 0 ms timer to launch a function after the
Gui setup.
I've modified your gist here :
https://gist.github.com/pierre-haessig/9909708
(for some reason the Github fork button printed The
I have a matplotlib application which can display a plot or write it
to a file based on command line flags. I have discovered that if it is
run without DISPLAY set (say, from a crontab file) that the default
backend (I have no matplotlibrc file) attempts to chat with X, causing
crashes. I've
Hmmm, sounds like a bug of some sort. Perhaps a pixel size is not being
specified when creating the movie. Could you file an issue detailing
exactly which version of mpl you are using and which movie writer you are
using?
Cheers!
Ben Root
On Wed, Nov 27, 2013 at 11:57 AM, Andreas Hilboll
Hi,
when running basic_example_writer.py, I get *.mp4 files with a canvas
size of 800x600 pixels (at least that's what mplayer tells me). However,
I have trouble understanding where this canvas size comes from. The
example does not explicitly set the dpi or the figure size, and I don't
have a
I looked at the example of overriding the default reporting of coords,
which is here:
http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html
from pylab import *
def millions(x):
return '$%1.1fM' % (x*1e-6)
x = rand(20)
y = 1e7*rand(20)
ax = subplot(111)
ax.fmt_ydata =
On Thu, May 31, 2012 at 9:31 AM, Mark Bakker mark...@gmail.com wrote:
I looked at the example of overriding the default reporting of coords,
which is here:
http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html
from pylab import *
def millions(x):
return '$%1.1fM' %
OK. Got it. That is not what I was looking for.
But, why the leading $ sign? Just as an example? The $ sign shows up in the
cursor coordinate now. Is that what was supposed to happen (it is confusing
with the $ sign also being used for mathtext formatting, as you know).
Thanks,
Mark
On Thu,
On Thu, May 31, 2012 at 10:03 AM, Mark Bakker mark...@gmail.com wrote:
OK. Got it. That is not what I was looking for.
But, why the leading $ sign? Just as an example? The $ sign shows up in
the cursor coordinate now. Is that what was supposed to happen (it is
confusing with the $ sign also
On 05/31/2012 10:12 AM, Tony Yu wrote:
On Thu, May 31, 2012 at 10:03 AM, Mark Bakker mark...@gmail.com
mailto:mark...@gmail.com wrote:
OK. Got it. That is not what I was looking for.
But, why the leading $ sign? Just as an example? The $ sign shows
up in the cursor coordinate
In article rowen-a1b6dd.12441428022...@news.gmane.org,
Russell E. Owen ro...@uw.edu wrote:
In article
CACM7dVw_Lde1QDS4vRvi-zTit8gqFYgYuyRLakOqBy0AVii7oA-JsoAwUIsXosN+BqQ9rBEUg@pu
blic.gmane.org,
William Jennings willim...@gmail.com
wrote:
Hello mat plot lib users!
I feel quite
In article
cacm7dvw_lde1qds4vrvi-ztit8gqfygyuyrlakoqby0avii...@mail.gmail.com,
William Jennings willim...@gmail.com
wrote:
Hello mat plot lib users!
I feel quite embarrassed that I've gone through 2 days of trying to get to
get numpy, scipy and matplotlib all to work nice with each other.
To William Jennings.
I would suggest you look at the SAGE python package (http://www.sagemath.org/).
Like Enthought it's an all-in-one package. My package uses Python 2.6.4.
Current versions may be higher. It has a LOT of stuff, but you don't need to
use it all and can ignore it (lots on
On 2/21/12 9:24 AM, Lou Pecora wrote:
To William Jennings.
I would suggest you look at the SAGE python package
(http://www.sagemath.org/). Like Enthought it's an all-in-one package.
My package uses Python 2.6.4. Current versions may be higher. It has a
LOT of stuff, but you don't need to use
Hello mat plot lib users!
I feel quite embarrassed that I’ve gone through 2 days of trying to get to
get numpy, scipy and matplotlib all to work nice with each other. I’ve
scraped through forums, stackoverflow and all the links that can bide me
some type of logic. Yet, alas I still fail wildly
Hi William,
I have also spent some time to have a numpy/scipy/matplotlib set working under
mac os X lion (10.7.3)
I use python 2.7.2, and work with ipython (0.12) in pylab mode.
I finally did a mixture of several posts on forums and got it to work properly
now.
Here is the recipe :
1 -
Hi,
I'm using a slider widget from matplotlib and I've been trying to
update just the slider bar using blit for faster animation because if
I use draw() for the whole canvas it is too slow. I got the bar to
animate faster using this method (though it doesn't look perfect), but
I can't figure out
from http://matplotlib.github.com/basemap/users/examples.html:
from mpl_toolkits.basemap import Basemap, shiftgrid, cm
import numpy as np
import matplotlib.pyplot as plt
from netCDF4 import Dataset
# read in etopo5 topography/bathymetry.
etopodata =\
OK, soon I found out that m.xmax... are dependant on projection, and I
wasn't using Lambert projection
For default projection result are degrees and this way meters it sems
On Tue, Nov 8, 2011 at 9:13 PM, klo uo klo...@gmail.com wrote:
from
On Sun, Oct 16, 2011 at 1:55 PM, C M cmpyt...@gmail.com wrote:
However, I can't get it to work correct with Figure. I'm either getting
that same error or failure to adjust the Figure's size to accommodate the
axes' labels. I attach a minimal runnable sample that demonstrates these
problems
In your example code, do you see the error raised only when you
include the tight_layout call?
Yes. To see this (at least on my platform), you take the example code
and try two things:
1) Comment IN this line: self.panel.Layout(). Run it and you'll get the error.
3) Now comment OUT the
On Mon, Oct 17, 2011 at 1:03 AM, C M cmpyt...@gmail.com wrote:
- Error if I call self.panel.Layout() before I call tight_layout().
In my system, I don't see any error whether ` self.panel.Layout() is in or not.
- If I don't do this, no error, but it still isn't doing a proper tight
layout.
So, it seems that the issue is platform-dependent.
OK.
As for the error message, it seems that the subplot_params values
(left, right, top, bottom, etc) calculated by the tight_layout
routine is somehow corrupted.
Why this happens is hard to track down unless I can reproduce the error.
And
Figure.tight_layout() is a correct way.
Do you see that error only when you use Figure.tight_plot (and not
when you use plt.tight_layout)?
What happen you try the script below.
import matplotlib.pyplot as plt
fig = plt.figure(1)ax = fig.add_subplot(111)fig.tight_layout()
Regards,
-JJ
On Sat,
On Sat, Oct 15, 2011 at 10:15 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
Figure.tight_layout() is a correct way.
Do you see that error only when you use Figure.tight_plot (and not
when you use plt.tight_layout)?
Yes.
What happen you try the script below.
import matplotlib.pyplot as
Just trying out the latest mpl 1.1.0 and the tight_layout() method. I saw
the guide written about it, but am a unsure how to use this when using the
OO approach to using Matplotlib.
When using pyplot, the method is: plt.tight_layout(). When using the OO
form of mpl, is it:
On Wed, Jul 13, 2011 at 6:49 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote:
$ ipython -pylab
#
from matplotlib.collections import LineCollection
f = figure()
plot()
ax = gca()
vec = numpy.random.random((10,3))
segs = []
Hi,
I'm plotting thousands of short lines on a plot. Because plot and Line2D
are quite slow for this case, I'm trying to use lineCollection. Here comes the
part of my testing code:
...
segs = []
# Manual set for testing
x2 = np.zeros(2,dtype=int)
ys2 =
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com:
Hi,
I'm plotting thousands of short lines on a plot. Because plot and Line2D
are quite slow for this case, I'm trying to use lineCollection. Here comes
the part of my testing code:
...
segs = []
# Manual set for testing
x2 =
: [Matplotlib-users] Question on LineCollection
From: jne...@gmail.com
To: sulsj0...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com:
Hi,
I'm plotting thousands of short lines on a plot. Because plot and Line2D
are quite slow
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com:
Thanks, Justin
I think I made a confusing example code. Here comes new one:
Maybe you just need to force a call to draw() and set your x/y limits.
This works for me on matplotlib 1.0.1
$ ipython -pylab
#
from matplotlib.collections import
2011 16:44:01 -0400
Subject: Re: [Matplotlib-users] Question on LineCollection
From: jne...@gmail.com
To: sulsj0...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com:
Thanks, Justin
I think I made a confusing example code. Here comes new
If I set like
vec = 100*numpy.random.random((10,3))
it does not shpw lines even with changing the set_xlimit and set_ylimit. I
guess there is something related with scaling.
Jin
---
Date: Wed, 13 Jul 2011 16:44:01 -0400
Subject: Re: [Matplotlib-users] Question on LineCollection
From
On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote:
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com:
Thanks, Justin
I think I made a confusing example code. Here comes new one:
Maybe you just need to force a call to draw() and set your x/y limits.
This works for me on matplotlib
On Sat, Oct 23, 2010 at 1:30 AM, Gökhan Sever gokhanse...@gmail.com wrote:
By the way, from the linked construct, changing width and height of
the rectangle doesn't have any affect.
This is an expected behavior. Legend handles only respect a subset of
parent's properties. For example, for
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote:
How could I change the appearance of the legend symbol in this case?
It auto-uses a patch object (rectangle in this case).
I would like to get a straight line instead.
You may use proxy artists.
On Fri, Oct 22, 2010 at 6:26 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote:
How could I change the appearance of the legend symbol in this case?
It auto-uses a patch object (rectangle in this case).
I would like to get a
Hello,
Consider these two simple lines in IPython -pylab:
plt.hist(np.random.randn(1000), normed=1, histtype='step', label='test', lw=2)
plt.legend()
How could I change the appearance of the legend symbol in this case?
It auto-uses a patch object (rectangle in this case).
I would like to get a
Hi,
I've stumbled across an old application from 2007 which uses the old
matplotlib.transforms API, namely matplotlib.transforms.Value() which
obviously disappeared in a great transforms overhaul.
I tried to figure out what has become of these classes and functions
browsing the changelog and
There is a guide about porting from the old transforms to the new
transforms here:
http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring
Mike
On 06/24/2010 01:53 PM, Florian Berger wrote:
Hi,
I've stumbled across an old application from 2007 which
On Thu, Jun 24, 2010 at 1:11 PM, Michael Droettboom md...@stsci.edu wrote:
There is a guide about porting from the old transforms to the new
transforms here:
http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring
It's possible I'm missing something, but
Hi,
Ryan May rma...@gmail.com:
Michael Droettboom md...@stsci.edu wrote:
There is a guide about porting from the old transforms to the new
transforms here:
http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring
It's possible I'm missing
On 06/24/2010 11:07 AM, Florian Berger wrote:
Hi,
Ryan Mayrma...@gmail.com:
Michael Droettboommd...@stsci.edu wrote:
There is a guide about porting from the old transforms to the new
transforms here:
Hi,
Eric Firing efir...@hawaii.edu:
It was *such* a major change that Value and its ilk were completely
replaced, not moved aside.
Thanks, I feared as much. :)
look at what you were trying to do with the code, not at how you
implemented it via Value.
Well the thing is that *I* did not
On 6/9/2010 9:12 AM, Waléria Antunes David wrote:
Is there a way to plot my functions in the graph so that one can to
visualize the difference between them.
Did you try the example I posted?
Why is it not adequate?
Alan Isaac
On 6/9/2010 9:12 AM, Wal?ria Antunes David wrote:
Is there a way to plot my functions in the graph so that one can to
visualize the difference between them.
Did you try the example I posted?
Why is it not adequate?
Alan Isaac
Hello,
Alan Isaac,
Sure, i tried your example, but really i
I tried to reproduce your attached plots using the functions you gave.
While I was able to reproduce your first graph (values from -1.08e-20 to
-1.386e-20) I could not reproduce your second graph. My y2 has values from
1.397e27 to 1.7936e27. Your second graph shows values ranging from 1.7e-27
to
Waléria Antunes David wrote:
Hello!!!
My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And
I'd like to make a question. I'm in trouble to generate a two
functions graph.
I have a problem to generate a graph of the two functions. I have this
functions, is bellow:
*y1 =
On 6/8/2010 11:19 AM, Waléria Antunes David wrote:
the first function isdecrescent an the second is crescent
Decreasing and increasing over the specified range, you mean.
You won't see that when you plot them together
because they have very different scales,
so the one with the small scale
On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David
waleriantu...@gmail.com wrote:
Hello!!!
My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd
like to make a question. I'm in trouble to generate a two functions graph.
I have a problem to generate a graph of the
On 6/8/2010 11:19 AM, Waléria Antunes David wrote:
the first function isdecrescent an the second is crescent
Decreasing and increasing over the specified range, you mean.
You won't see that when you plot them together
because they have very different scales,
so the one with the small scale
On Tue, Jun 8, 2010 at 1:34 PM, Gökhan Sever gokhanse...@gmail.com
wrote:
You might need to check your y2. You are mixing integers and floats
which possible have resulted with some rounding errors. I get e+30
when I assert the terms as floats in y2.
On 6/8/2010 1:47 PM, Waléria Antunes
On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David
waleriantu...@gmail.com wrote:
no, I think, did not understand my functions.seei made a change my
second function in the attached.
You can further simplify your function. Try grouping 10 powers under one
term. You can then
Waléria,
I repeat, you need to add parentheses for the denominator of that quantity
in order to match what you wrote out on paper. You are missing a set of
parentheses that is causing (3e14**2) to be *multiplied* rather than
divided. This explains the huge values you are getting.
Ben Root
On
Hello Eric,
thank you so much fo your feedback and the fix! it works as expected.
bye for now
Margherita
- Original Message -
From: Eric Firing efir...@hawaii.edu
Date: Friday, April 30, 2010 6:01 pm
Subject: Re: [Matplotlib-users] question about axis scale multiplier
Margherita Vittone
HI,
i am making a scatter plot and i simply use defaults for tick formatting etc;
when i plot the data the plot show on the x axis a multiplier scaling with
scintific notation;
i would like to get rid of it , the data looks like this:
values5 =
Margherita Vittone wiersma wrote:
HI,
i am making a scatter plot and i simply use defaults for tick formatting etc;
when i plot the data the plot show on the x axis a multiplier scaling with
scintific notation;
i would like to get rid of it , the data looks like this:
values5 =
That's great news -- glad we got to the bottom of it, though I'm not
sure how your system may have become wedged like that in the first
place. I should have thought of this earlier, but if it happens again,
can you send me your fontList.cache file so I can inspect it? There may
be a bug in
It looks like the end of the traceback -- where the actual exception is
named -- is missing. Can you repost it in its entirety?
Mike
william ratcliff wrote:
Hi! I am using matplotlib 0.99.0 under windows xp. I tried the
following:
ax.text(.96,.80,r'$P \perp
I think the actual error was:
TypeError: cannot return std::string from Unicode object
It was the error returned when I walked through with a debugger...
On Mon, Apr 19, 2010 at 8:51 AM, Michael Droettboom md...@stsci.edu wrote:
It looks like the end of the traceback -- where the actual
I'm not able to reproduce that here, with either SVN or 0.99.1.2. Do
you have any font-related or mathtext-related settings in your matplotlibrc?
Mike
william ratcliff wrote:
I think the actual error was:
TypeError: cannot return std::string from Unicode object
It was the error returned
One might see that error if the path to the font being used contains
non-ascii characters (the basename variable in the last frame of the
stack in the stacktrace). Is that possible? We may need to implement
the same workaround we use for image files for loading fonts (which is
to open the
Assuming that the matplotlibrc file being read is in mpl-data, here is the
relevant section:
### FONT
#
# font properties used by text.Text. See
# http://matplotlib.sourceforge.net/api/font_manager_api.html for more
# information on font properties. The 6 font properties used for font
#
Does forcibly casting the path to a string resolve the problem? i.e.
applying this patch:
Index: mathtext.py
===
--- mathtext.py (revision 8216)
+++ mathtext.py (working copy)
@@ -597,7 +597,7 @@
cached_font =
On the plus side, there is no longer an error when I apply the patch. On
the downside, it generates a rather strange symbol instead of a
perpendicular symbolLet me try to quickly upgrade to 0.99.1. I did that
and I seem to get the same error...
On Mon, Apr 19, 2010 at 10:49 AM, Michael
The puzzling thing is this:
u'C:\\WINDOWS\\Fonts\\HTOWERTI.TTF'
It's using a custom font in mathtext. Are you setting the rcParams
mathtext.fontset or mathtext.default? That may the culprit, and if not,
it's a bug that it's trying to use that font.
Mike
william ratcliff wrote:
On the plus
Hmm... I'm a bit stumped. Can you print out the values of these from
your script, i.e. put the following at the top:
from matplotlib import rcParams
print rcParams['mathtext.fontset']
print rcParams['mathtext.default']
Can you try deleting your fontList.cache file?
Mike
william
Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following:
ax.text(.96,.80,r'$P \perp
Q$',fontsize=18,horizontalalignment='right',verticalalignment='top',transform=ax.transAxes,color='black')
and get the following error:
(However, in figure labels, symbols using mathtext, such as
Hello,
I have a set of NetCDF files that are in Lambert Conformal projection,
and I want to convert them to rectilinear, lat/lon projection. I'm
able to do this and plot the data and print the data out to a png
file. However, I want to get access to the underlying data as it
appears after the
Michael Mason wrote:
Hello,
I have a set of NetCDF files that are in Lambert Conformal projection,
and I want to convert them to rectilinear, lat/lon projection. I'm
able to do this and plot the data and print the data out to a png
file. However, I want to get access to the underlying data
Hi,
I reattached your example in a slightly modified way. For me with current svn
it does its job. The key points are that I introduced a twin-axes and used
subplots_adjust(wspace=0.6) to extend the horizontal space between the
subplots.
Does this help you?
Kind regards
Matthias
On
Hi All,
I'm trying to create a set of strip charts so that I can see the relationships
between a large number of time series. I'd like to label the y-axis with a
name on the left side and a value/percentile on the right hand side. I can get
the names on the left axis, and it looks very nice
I'm trying to make a figure with six subplots, here's what I've managed
so far:
http://dl.dropbox.com/u/136038/bar-00-protagonist.png
That's actually done with two subplots (the top row and the bottom row)
and what looks almost like 3 separate pairs of axes in each row is
actually just one pair
Thu, 26 Nov 2009 15:13:57 +, chombee wrote:
I'm trying to make a figure with six subplots, here's what I've managed
so far:
http://dl.dropbox.com/u/136038/bar-00-protagonist.png
That's actually done with two subplots (the top row and the bottom row)
and what looks almost like 3
You could perhaps use 6 subplots, and place the titles manually.
Something like
suptitle(r'Top title', y=0.95)
suptitle(r'Bottom title', y=0.05)
Thanks, that worked very well. I got the plot that I wanted and with
much tidier source code:
The documentation for scatter command is out of date unfortunately.
You need to use scatterpoints keyword.
http://www.nabble.com/legend-bug--td22466216.html#a22466216
-JJ
On Mon, Jul 27, 2009 at 3:44 PM, per freemperfr...@gmail.com wrote:
Hi all
i am making a scatter plot and want to label
I also recently posted an example that may do something similar to what you
are after, you can have a look here:
http://www.nabble.com/contribute-to-gallery--Or%2C-just-advice-on-changing-colors-automagically-td24419101.html#a24427781
per freem-2 wrote:
Hi all,
i would like to set
Hi all,
i would like to set the colors of the lines i plot (using the plot function)
to go from red to blue, in evenly spaced interval. that is, imagine a color
map from red to green, where i plot n-many lines, each receiving a color
from this color map, starting at the red end and going to
Not too long ago, I posted an example of this to the list. The code
near the bottom of that thread is a little more general than the one
at the top and shows, three different ways to cycle through the colors
of a colormap.
Hope that helps,
-Tony
On Jul 14, 2009, at 9:51 AM, per freem
Hi Tony,
thanks for the pointer. that code does not run for me, it generates the
following error:
ttributeErrorTraceback (most recent call last)
color_cycle.py in module()
63 if __name__ == '__main__':
64 n_lines = 10
--- 65
On Jul 14, 2009, at 3:12 PM, per freem wrote:
Hi Tony,
thanks for the pointer. that code does not run for me, it generates
the following error:
ttributeErrorTraceback (most recent call
last)
/Library/Python/2.5/site-packages/matplotlib/rcsetup.pyc
Thanks John. The bar_stacked example does not seem to work for histograms, but I'm glad to know that we could manually make the legends.
I still do not know how to specify the colors of the stacks in my histogram,
so adding the manual legends for them is still a pain -- but at least doable
Hi all,
Has any of you had any luck with creating stacked histograms using
matplotlib? It seems to work but I have no idea how to label (or add the
legend) or choose the colors of the stacks. Below is a sample code for
creating a stacked histogram. Can anyone help please? Unlike the bar()
Dear all,
When writing:
f = figure()
...
gl = f.gca().get_xgridlines()
I always get a list of gridlines independantly of the fact that they are
actually drawn or not.
Is there an attribute or a method that could inform me whether the
gridlines are actually displayed or not ?
I
On Sun, May 17, 2009 at 11:07 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
I think one possible solution would be to simply deprecate the support
for PIL image in imshow, and let users explicitly use array-interface
via asarray function.
Is there any other idea?
I'll make this change unless
John Hunter wrote:
On Sun, May 17, 2009 at 11:07 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
I think one possible solution would be to simply deprecate the support
for PIL image in imshow, and let users explicitly use array-interface
via asarray function.
Is there any other idea?
I'll
william ratcliff wrote:
Hi! I have a question about contours and clim within matplotlib. I
load in some files and do some processing and generate a contour plot using:
cmap=pylab.cm.jet
mycontour=pylab.contourf(x,y,z,95)#,
You don't really want 95 contour levels, do you?
Instead of
william ratcliff wrote:
Here, I've changed the number of contours to 15 and 45 respectively--and
the problem still remains. Do I need to manually set the ranges of the
segments on the colorbar or something? It would seem to me that somehow
the new limits are not being used in determining
william ratcliff wrote:
Thanks! I think that explains a lot. In the full range of my dataset,
I do have some rather high values. Instead of masking them out, I was
hoping that I could just set a minimum and maximum value using clim to
only display values within that range--it sounds like
Thanks! I'll just add that if you want to use the ticker example it needs
to be:
..
zmin, zmax = 160, 500
locator = ticker.MaxNLocator(10) # if you want no more than 10 contours
locator.create_dummy_axis()
locator.set_bounds(zmin, zmax)
levs = locator()
On Mon, May 18, 2009 at 7:29
I think the point here is that
img = Image('foo.png')
imshow(img)
and
img = Image('foo.png')
imshow(asarray(img))
give different results, since matplotlib.image.pil_to_array functions
differently from what PIL exposes in __array_interface__
--
Pauli
Hi,
I want to read images and do some processing with them. While learning how to
do this, i.e. opening images, displaying them, transforming them tu numpy
arrays, etc., I came across a strange behaviour. If I open an image and use
imshow() to display it, it comes upside down. See this thread
On Sat, May 16, 2009 at 6:58 PM, jorgesmbox...@yahoo.es wrote:
Hi,
I want to read images and do some processing with them. While learning how to
do this, i.e. opening images, displaying them, transforming them tu numpy
arrays, etc., I came across a strange behaviour. If I open an image and
I find you?
Paola
Pablo Romero-2 wrote:
Hi,
I would like to know how I can pass an array of levels and also a colormap
to the contour() function and have the levels span the entire colormap.
example...
if I do the following
Hi,
I would like to know how I can pass an array of levels and also a colormap to
the contour() function and have the levels span the entire colormap. example...
if I do the following
Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
Pablo Romero wrote:
Hi,
I would like to know how I can pass an array of levels and also a colormap to
the contour() function and have the levels span the entire colormap.
example...
if I do the following
Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
pass this array to
contourf(colors='mycolorsarray')...
does this make sense?
P.Romero
Date: Sun, 15 Mar 2009 08:32:32 -1000
From: efir...@hawaii.edu
Subject: Re: [Matplotlib-users] question about levels colormaps for
contour functions
...@hawaii.edu
Subject: Re: [Matplotlib-users] question about levels colormaps for contour
functions
To: romero...@hotmail.com; matplotlib-users@lists.sourceforge.net
Pablo Romero wrote:
Eric,
I believe the problem is that my 19 levels are not evenly distributed;
Lv
1 - 100 of 174 matches
Mail list logo