Looks like I've done a mistake with my last post, sorry Eli...
I know how to save datas to a shapefile with the OGR library but only
for points datas.
I'll appreciate if somebody can point me how to save a filled contour
map basemap into a polygon shapefile, can't find any exam
Lionel Roubeyrie wrote:
> Looks like I've done a mistake with my last post, sorry Eli...
> I know how to save datas to a shapefile with the OGR library but only
> for points datas.
> I'll appreciate if somebody can point me how to save a filled contour
> map basemap
On Wed, Aug 6, 2008 at 1:28 PM, peter websdell
<[EMAIL PROTECTED]> wrote:
> No michael, that is what I was suggesting. Shame it doesn't work.
>
> I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get
> it doing what I want though, and I don't know if it does alpha transparenc
Hello,
I am new to matplotlib and pylab.
I have an image plotted with imshow/contour, or even just a coordinate
system plotted with axis.
I need to plot smaller contours/images on them at selected pixels. The only
way I can figure how to do that is using axes. However, axes is defined on
With_Doc#head-11717acafb821da646a8db6997e59b820ac8761a
You can contour any 2d array.
You can optionally supply 1d coordinates.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> plt.contour
Hi,
I'm 6 months into learning python and haven't been able to find a way
to do this, so I hope you don't mind a basic question.
I'd like to use the polygons contour makes but I can't figure out how
to get them from ContourSet. Any examples or links to helpful
infor
igure()
ax = axes3d.Axes3D(fig)
X, Y, Z = axes3d.get_test_data(0.05)
cset = ax.contourf(X, Y, Z, 0) # doesn't work with contour
ax.clabel(cset, fontsize=9, inline=1)
plt.show()
Many greetings,
Tom
--
The Pa
Hi list,
what's the best (meaning most efficient/fastest) way to plot grid point
values on a map created with basemap?
I'd like to plot the raw values of my data-array to the correspondig
gridpoints, instead of having it transformed to something like contour
or contourf. The ne
Hi,
when I plot 2D data with imshow() and then add a contour plot, my
contours have an offset in relation to the data. At the same time there
is white space at the edge of my plot, so I assume that it is the
imshow plot that actually gets shifted. I'm new to Python and
matplotlib, so I
color will be
> blue.
Well, that's embarrassing -- if I had read the documentation more
carefully, I would have realized that the levels spec "V" means
different things for "contour" and "contourf".
Thank you again! :)
Regards,
Sourav
Hi,
Im trying to create a precipitation contour plot using imshow() and basemap.
Id like to draw the imshow() plot so that it overlays the filled continents,
yet NOT the continental outlines.
unfortunately, it appears that imshow()'s graphics are always drawn before
everything else, s
On Wed, Jul 16, 2008 at 1:25 PM, Oz Nahum <[EMAIL PROTECTED]> wrote:
> Ok, I played with it a little bit.
>
> Here is what I know:
> importing the data is not a big issue, I aready wrote a tutorial about it
> here:
> http://www.tabula0rasa.org/?p=21
There are a couple of functions for loading ASCI
On Wed, Jul 16, 2008 at 3:18 PM, Oz Nahum <[EMAIL PROTECTED]> wrote:
>>You can transpose your inputs. For numpy arrays: x = x.transpose()
>
> i wrote:
> for np arrays: x = x.transpose()
>
> but I still get a syntax error.
umm that was english, not python. They python is
x = x.transpose(
On Wed, 16 Jul 2008, Michael Droettboom apparently wrote:
> [Attachment: dolphin.py : TEXT/PLAIN, 62 lines]
I have to say, I was completely unaware of the path.Path
capability of Matplotlib, but even if I had known of it,
I would not have thought of how to exploit it this way.
Even though this
Friends,
I have two matrices of same size. I used contourf to create the countour
plots for the two matrices separately.
i) I am interested in making one countour plot marking the areas which are
different in both the countours or
ii) Overlapping one countour over the other, so that i can compa
Sebastian Busch schrieb:
> Armin Moser wrote:
>> Sebastian Busch wrote:
>>> ...
>>> array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])])
>> It seems that I did not understand what you tried to reach.
>> ...
>
> Sorry. I wanted to do the same as Matthias -- taking his example:
I meant I
On Mar 28, 2013, at 11:51 AM, Eric Firing wrote:
> Pay attention only to the listed keyword arguments above that table.
Sounds good
OTOH a clim argument for pcolormesh would be nice, as I often end up calling
"clim" after I've made a contour overtop of my pcolor,
)
plt.show()
colorbar is representing last contour.
I want to make colorbar that will match actual plot, which is combination of
two contours obviously. I tried also something like:
import numpy as np
import matplotlib.pyplot a
Hi
I have a set of records with known lat long. I want to show the
concentration of the records with a contour diagram on a world map in
any projection. It cannot spill over to the oceans. I know I have to
use basemap. Is there a quick recipe somewhere I can follow to give
me a
Hi there,
I have a 2d array that I'd like to contour. The plot isn't turning out right
and I think it's because the array isn't be read in correctly.
It's a 25x41 array that is in a text file. I have tried using genfromtxt and
the asciitable module to read the data
I'm wondering if there is some way to do cross hatching as a way to fill
contours rather than colors (using contourf). The only references to
cross hatching I see in the documentation are for patches type objects.
As far as I can tell, contour and contourf return objects of their own
I've been trying to plot a pcolor over a contourf with a masked array in
the pcolor so that parts of the contour will show through underneath,
but whenever I try to do this the pcolor wipes out the contourf. I can
do this fine with a contourf over another contourf, but I'm plott
Christian Lerrahn wrote:
> Hi,
> when I plot 2D data with imshow() and then add a contour plot, my
> contours have an offset in relation to the data. At the same time there
> is white space at the edge of my plot, so I assume that it is the
> imshow plot that actually gets shif
Hi all,
find with this message a modified version of windrose to be OO compliant.
It uses inheritance from PolarAxes to create a WindroseAxes, with 4 methods
(contour, contourf, bar and box). BTW it's now possible to control it like
any other axes, with the limitation of subploting (subpl
There is nothing standard for this, and you would have to define more
precisely what you mean by the Z data; what kind of interpolation do you
want?
This type of request has come up before, and I suspect John may have
provided an illustration of how to do it in reply to some earlier such
requ
> "John" == John Pye <[EMAIL PROTECTED]> writes:
John> issues: 1. When exporting the following image, which is a
John> pcolor plot with alpha=0.15 and contours on top, I get no
John> alpha channel in the resulting output, regard of whether I
John> export as EPS or SVG. Is expor
On Thursday 13 July 2006 4:34 am, Mark Bakker wrote:
> To be honest, I think the native array storage order matters a lot.
[...]
> However, a 1D vector in Python is by default a row, while in Matlab it is a
> column.
> What are you going to do if a 1D row is given as first argument and a
> matrix
x27;
>
> and I can't seem to get contour() or contourf() to utilize the
> alpha keyword. No matter what value I set, alpha=1.0 on the
> output. Alpha in general works fine, as the scatter_demo2.py
> example gives very nicely alpha-channele
It might just have to be 2 separate contour/surface plots side by side,
perhaps with a linked cursor between them.
The other thing I considered was combining the a,b data into a single value
(combined % deviation from ideal?) but that reduces the data which I'd
rather not do if possible.
O
Great. Just what I needed. I appreciate it.
- James
On Feb 2, 2010, at 1:56 PM, Eric Firing wrote:
> James Conners wrote:
>> Hi,
>>
>> I'm having some trouble producing a filled contour how I want it.
>>
>> Say I'm plotting data over the
ntourf will autoscale
with tight boundaries), and you don't need to pass the extend kwarg to
colormap--it gets it from the ContourSet object.
Eric
""" make a contour plot with the levels specified,
and with the colormap generated automatically from a list of colors;
ere something else I
> should be doing to make this happen?
>
> Thanks again for your help.
>
> Cheers,
> David
>
>
> On Thu, 2008-07-10 at 11:52 -0400, Darren Dale wrote:
>
>> Hi David,
>>
>> On Thursday 10 July 2008 11:15:37 am David M. Kaplan wrote:
Pablo Romero wrote:
> Eric,
> For your reference, Im sending you a link to the python-grads interface files.
Thank you.
I am coming to the conclusion that you were mostly right early on. I
suspect that whether points landing on a contour boundary end up treated
as above or below
f the same contour,
leading to overlap in some places, and gaps in others. You can download
the PDF version (in which the exact geometry is much clearer).
from:
http://zaneselvans.org/dropbox/LinDensity_Grid.pdf
Zane
On Fri, Jun 12, 2009 at 5:51 AM, Michael Droettboom wrote:
> So you see this beh
00x5000.
Any asistance would be greatly appreciated.
Thanks,
Germán
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Need-to-plot-z-at-given-x-y-contour-or-something-tp38926.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
---
On 2013/01/22 11:50 PM, Andrew Dawson wrote:
> Hi all,
>
> [TL;DR: is it possible to control the length of the dashes in dashed
> contours, if so how?]
>
> I'd like to be able to control the length of dashes for dashed contours.
> My motivation is that I'm making
r the image and not those for the contours drawn on the image. How
does that work exactly?
As a side note, I thought that I had found a bug because an I was
looking at image would, in some places, print only the x and y values
but not the z value. Then I realized it was printing the values for a
co
On 08/11/2010 06:13 AM, tgabriel wrote:
>
>
> Problem 1: I have a dataset which has more values on one side of the scale
> than the other in a contour map. Matplotlib will see that I have more values
> towards one side of the scale, and put all of the colors in that color map
> t
omments indicate, I think I will want to make more extensive
changes, but this removes the immediate problem.
To get the result you want, however, I think that your approach using
the norm will not work; maybe it should, but right now it doesn't.
Instead, simply specify the contour levels that
I am making contourf plots with some transparency as I want to
eventually overlay such plots. When I plot such plots I see artifacts
or lines that shouldn't be there as seen here:
http://josephsmidt.googlepages.com/ex.png
Is this a bug or am I plotting incorrectly? My script is here:
http://
bright ideas as to how i could get round this problem?
In 2D, i would use histogram2D and either contour or pcolor to show
densities. Could something similar be done in 3D too?
Thanks,
Jon.
--
View this message in context:
http://old.nabble.com/mplot3d%3A-large-numbers-scatter-plot
For newbies to MPL, needed imports seem a bit baffling. scipy, pylab,
matplotlib, ...? What libs or lib components do I only need for a
particular use? Suppose I want to produce a scatter, contour, or 3d
plot. What do I need minimally or more widely? I'm assuming that I don't
w
On 2/11/2010 1:24 PM, Wayne Watson wrote:
> Suppose I want to produce a scatter, contour, or 3d
> plot. What do I need minimally or more widely?
If you just want to work on these in isolation,
you just need
import matplotlib.pyplot as plt
Nothing more. You can now use e.g. plt.plot
wh
the last
release so should have had their documentation generated. Am I missing
something? Can the documentation for these modules be found somewhere else?
bezier
blocking_input
contour
docstring
finance
hatch
image
mlab
mpl
offsetbox
patheffects
pylab
pyparsing
quiver
rcsetup
table
texmanager
Chris Barker wrote:
> hmm -- I wonder if a post to matplotlib-devel is in order. Most of those
> folks are on this list, to, but may not be following this thread.
I'll post to matplotlib-devel shortly and see what response I get.
> By the way, it sounds like your contouring code is in C++ -- is
On 05/24/2010 07:43 AM, Jeff Whitaker wrote:
> On 5/24/10 10:09 AM, P. R.M. wrote:
>> Hi,
>> Im trying to create a precipitation contour plot using imshow() and
>> basemap.
>> Id like to draw the imshow() plot so that it overlays the filled
>> continents,
> On Wed, Jul 16, 2008 at 5:51 PM, Christopher Barker wrote:
>> I'd like to see the Delaunay stuff included -- in fact,
>> you could contour irregular data directly using Delaunay
>> triangulation.
On Wed, 16 Jul 2008, John Hunter apparently wrote:
> I'
Michael Droettboom wrote:
> Oz Nahum wrote:
>> I am mostly frustrated with documentation writers who write very nice
>> tutorials describing how to plot completely unusfull graphs of spheres
>> inside loops and a dolphin swimming in the middle.
> I'm sorry. I just couldn't resist writing a tutor
try this:
list = numpy.array([0.66877509, 0.58785363, 0.32387598, 0.16877509,
0.48785363,
0.22387598, 0.96877509, 0.18785363, 0.52387598])
Pete
2008/8/8 stuartornum <[EMAIL PROTECTED]>
>
> Thanks again Pete for your help.
>
> I have numpy imported, and here is what my code looks like:
>
> #
stuartornum wrote:
> Also what does rand(3,3) actually produce? is it a list, dict, im not really
> sure.
Since you are using Python, you can just ask it:
>>> import numpy as np
>>> help(np.random.rand)
Help on built-in function rand:
rand(...)
Return an array of t
On Mon, Oct 20, 2008 at 6:57 AM, Jakub Urban <[EMAIL PROTECTED]> wrote:
> C:\Python25\lib\site-packages\matplotlib\legend.pyc in
> _update_positions(self, r
> enderer)
> 521 ydata = y*np.ones(handle.get_xdata().shape, float)
> 522 handle.set_ydata(ydata+h/2.
.75ive.com/testdata.csv
>> http://downloads.75ive.com/testdata.csv
>>
>> Any help is appreciated!
>
>
> I assume you meant to include your dependent variable in the call to
> contour, not just your longitude and latitude. In any case, you need to
> grid your data
I am generating level curves numerically with a gradient method of my own
recipe. The result is a bunch of 100x2 vectors, each 'row' of which is a
point on a level curve in the plane. My goal is to label each plot line
analogously to how contour lines are labelled with clabel. Is thi
Deltarodigy wrote:
> Ok so I have been looking into the Figure class and I still not clear on how
> figure works. Does it contain all of the normal functions that are in pylab?
> Does it just contain axes which are are where the graphs are, like subplots
> in pylab? Do I need to use figure inside o
Hi Bala,
I added a small example showing up your matrix in order to have a running
example, where you can specify your needs.
In the program contourf could be replaced by contour or imshow - see help /
docu / examples on the web
The colormap can be specified with the kwarg "cmap&q
/api/path_api.html#matplotlib.path.Path)
> although the number of vertices is 6, actually suggesting a CURVE4.
>
> Would that be a bug?
I don't see it.
x = np.arange(9)
x.shape = (3,3)
cs = contourf(x, 1)
print cs.collections.get_paths()
This shows a set of vertices with a matching set of LINETO (aft
List,
I'm making a scatter plot using a for loop. Here's a simple example..
for i in range(10):
x=rand()
y=rand()
scatter(x,y,label='point')
legend()
show()
When you do this, you get a legend entry for every single point. In this
case, I get 9 entries in my legend.
Is there a
LineCollection
instances in QuadContourSet.collections does. Below is a quick
example.
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(100)-50
arr = (x**2 + x[:,np.newaxis]**2)**.5
cont = plt.contour(arr)
col1 = cont.collections[3] # contour line to clip with.
clip_path = col1.get_pat
t.pcolormesh?? did not give much help
> with best regards,
> Sudheer
>
You can overlay contours on the pcolormesh image by simply using the
plt.contour() function after the pcolormesh() call. It allows you to
control which levels to contour and you can specify the attributes of those
On Tue, Sep 14, 2010 at 12:09 AM, Kenshi hibino
wrote:
> I thought that "axis([0,pi,0,1])" make the writing domain semi-circle,
> but complete circle was written as domain.
>
> Does anyone know how I should write?
>
With "polar" projection, it is not possible to make semi-circle domain.
You need
Dear experts,
is there a way of rotating a single subplot in a multi-faceted figure with
respect to the others?
i.e. I have a contour plot representing a 2D histogram and on the top of
it and to its left two line plots, representing the respective 1D
components. I am aware of the possibility to
How about Numpy's loadtxt()? Genfromtext is more of a specialty function.
Ben Root
On Monday, August 29, 2011, Alexa Villaume wrote:
> Hi there,
> I have a 2d array that I'd like to contour. The plot isn't turning out
right and I think it's because the array isn'
On Tue, Aug 30, 2011 at 9:47 PM, Alexa Villaume wrote:
> Thanks for responding, Ben. I used loadtxt() and I'm still getting a very
> strange looking contour plot. I've attached it and maybe that will be
> helpful in diagnosing what is wrong with it.
>
> I have no reason
but you can see how to
make a nice time axis by looking at date_demo.py at
http://matplotlib.sourceforge.net/screenshots.html. Just replace the
line plot with a contour plot, and there you go.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX:
s like plot(x) or
imshow(x) or contour(x) etc...
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Dow
On Thu, Jul 13, 2006 at 10:34:11AM +0200, Mark Bakker wrote:
> To be honest, I think the native array storage order matters a lot.
> When you have a large dataset, transposing the matrix is not a cheap
> command.
If you use numpy, transposing is cheap. You see it when you try
import numpy as N
z
Hi All,
I'm using matplotlib (with agg backends) from recent svn:
In [63]: matplotlib.__version__
Out[63]: '0.87.4'
and I can't seem to get contour() or contourf() to utilize the
alpha keyword. No matter what value I set, alpha=1.0 on the
output. Alpha in genera
3.0, delta)
y = np.arange(-2.0, 2.0, delta)
X, Y = np.meshgrid(x, y)
Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
# difference of Gaussians
Z = 10.0 * (Z2 - Z1)
# Create a simple contour plot with labels using default colors. The
# inline a
> I'm working on a small matplotlib app using PyQT4. It involves selecting an
> arbitrary number of data files and breaking each down into a group of 6
> contour subplots. I want to be able to switch between contour plots from
> each data set quickly to compare and contrast,
David M. Kaplan wrote:
> > 2) I have noticed that the font used for the xticklabels and the font
> > used for the xlabel and contour labels appears to be different (example
> > attached). One appears to be serif and the other sans-serif. This
> > seems to be due to using tex
t;>
>> On Thursday 10 July 2008 11:15:37 am David M. Kaplan wrote:
>>
>>> 2) I have noticed that the font used for the xticklabels and the font
>>> used for the xlabel and contour labels appears to be different (example
>>> attached). One appears t
David M. Kaplan wrote:
> > 2) I have noticed that the font used for the xticklabels and the font
> > used for the xlabel and contour labels appears to be different (example
> > attached). One appears to be serif and the other sans-serif. This
> > seems to be due to using tex
Oz
>
>
> On Wed, Jul 16, 2008 at 7:51 PM, Eric Firing <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Oz Nahum wrote:
>
> Hi,
> I want to draw a contour plot which uses data from files. I know
> how t
is a heatmap, so the GridValue should correspond to a
> colour and fill that particular square with the colour from the colorbar
> i.e.
>
> levels = arange(0.0, 1.0, 0.025)
>
> Thank you in advance for any help.
> --
> View this mes
o the following:
>>
>> Import numpy as np
>>
>> Z=my_data( .)
>>
>> m=basemap( . )
>>
>> X,Y=m(*np.meshgrid(Z.lon,Z.lat))
>>
>> Znp=Z.filled
>>
>> cs=m.contourf(X,Y,Znp)
>>
>> using this method, Im experiencing a str
almost never generate
them any more.)
Eric
>
>
> It plots fine except except there is no transparency in colors of the
> contour, it's like alpha is always set to 1.0
>
> On Sat, Feb 11, 2012 at 8:23 AM, Eric Firing <mailto:efir...@hawaii.edu>> wrote:
>
>
p', N =
>> len(colorList))
>> ...
>> m.contourf(x,y,z,cmap=cmap, levels=levels, extend='both')
>>
>> If the levels array is continuous then it works as expected. With the above
>> settings I get unexpected results, which includes 'ghost cont
two plots. Thanks for your help with this, and the tip about being
explicit in my programs!
-Evan
import pylab as P
from matplotlib.transforms import Value, Interval
from matplotlib.ticker import MaxNLocator
N = 12 # target number of contour levels
a = P.arange(12, 23, .5)
b
axes instance on which I have plotted my map decorations
> (coastlines, meridians and so on). I would like to reuse that axes. On the
> same axes* I would like to make filled contour plot and potentially a quiver
> plot. These should be discarded after saving the plot to a file.
>
Dear all,
Happy new year!
I am using Basemap toolkit to make some maps, I would like to
write something at the bottom of the map, whose position is now
taken by the contourf of Antarctica. Is there a way I can keep contours
of other continents but suppressing the one for antarctica? I attached
sh
You are asking for the twinx() feature:
http://matplotlib.org/examples/api/two_scales.html
On Thu, Aug 28, 2014 at 9:24 AM, Shantha Kumara wrote:
> Hi All,
>
> Thank you so much for your help, It really worked for me.
>
>
> I need one more favor,
>
>
> I have ploted the graph with 2 Y-axes
>
>
The gallery had a comprehensive set of available three dimensional plots, I
think.
http://matplotlib.org/gallery.html#mplot3d
On Tue, Jan 20, 2015 at 01:19 Nils Wagner wrote:
> Hi all,
>
> I found
>
>
> http://stackoverflow.com/questions/9419451/3d-contour-plot-from-data-u
ances, but that does not move the breaks/holes in the contour
lines.
Any suggestions on how to solve this problem?
Thanks,
Thomas
<>--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online
On 2010-03-11 13:38 PM, Chris Barker wrote:
> Ian Thomas wrote:
>> To summarise, you recommend the following units of functionality:
>>
>> 1) Triangulation class to wrap existing delaunay code.
>
> The idea here is that it would provide a class that holds the result of
> the triangulation. Yes, it
On 5/24/10 10:09 AM, P. R.M. wrote:
Hi,
Im trying to create a precipitation contour plot using imshow() and
basemap.
Id like to draw the imshow() plot so that it overlays the filled
continents, yet NOT the continental outlines.
unfortunately, it appears that imshow()'s graphics are a
>You can transpose your inputs. For numpy arrays: x = x.transpose()
i wrote:
for np arrays: x = x.transpose()
but I still get a syntax error.
> > Also, one more thing, I can't find how to expand the borders of the plot,
> > say from 350 to 400
> > (same for depth) I tried usig xlim and ylim(0
.net/examples/pylab_examples/dolphin.html
though the entire thread is worth an occasional reread :-)
http://www.nabble.com/ploting-a-contour-graph-from-data-files-td18491504.html#a18491504
JDH
-
This SF.Net email is sponsore
gt;
> Which errors out and requires a 2d array.
>
> By the way, here is a data file: http://downloads.75ive.com/testdata.csv
> http://downloads.75ive.com/testdata.csv
>
> Any help is appreciated!
I assume you meant to include your dependent variable in the call to
contour, n
Set. To do what it looks
like you are trying to do, if you want to force a draw on the contour
artists (which are matplotlib.collection.Collection instances), you
would do
self.contour = ax.contourf(...)
for col in sel
Hello
I have a contour plot with specified number of levels (isolines):
lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])
to have a log "z" axis I put:
from matplotlib import colors
contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))
now, to get c
Hello
I have a contour plot with specified number of levels (isolines):
lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])
to have a log "z" axis I put:
from matplotlib import colors
contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))
now, to get c
Matthias Michler wrote:
> ...
> for i in xrange(len(matrix3[:, 0])): # all rows
> for j in xrange(len(matrix3[0, :])):# all columns
> ...
if your matrices a and b are rectangular (and i think the "diagonal"
makes only sense in this case), you can also say:
array([list(a[i,:i])+list(b[i,i:]) f
Armin Moser wrote:
> Sebastian Busch wrote:
>> ...
>> array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])])
> It seems that I did not understand what you tried to reach.
> ...
Sorry. I wanted to do the same as Matthias -- taking his example:
=
from scipy import ones, array
matrix1
cator=ticker.LogLocator())
plt.colorbar()
works fine to create a contour map with logarithmic colorscale. Now I want to
refine the scaling by adding more colorlevels. Therefore I add another option
for the contourf() function, as follows:
plt.contourf(X,Y,Z.T, np.logspace(-1,5,15), locator=ticker.LogLo
Hello everybody,
I have a problem transferring from 3D data to a 2D representation.
I used mayavi to define a cut plane through a volume data set and got
the xyz
coordinates for the points on the plane and the data at each point.
Now I would like to make a contour plot of that data in
Hi All,
I'm just getting started with matplotlib. I'm trying to make a contour plot
using contourf and have the different paths colored and semi transparent
but the alpha keyword doesn't seem to do anything. I googled around and
found that other people have had this same problem bu
On Fri, Sep 14, 2012 at 3:50 PM, Eric Firing wrote:
> On 2012/09/14 9:00 AM, Benjamin Root wrote:
> > tricontourf() might be more what you are looking for. Another
> > possibility is pcolor() (note that for irregularly spaced grids,
> > pcolormesh() would not work).
>
> Huh? I don't think there
Hi list,
i am plotting some data using scatter and contour method while
using projection 3d. Now i want to label these two plots, but i
get the following warning:
"
UserWarning: No labeled objects found. Use label='...'
kwarg on individual plots. warnings.warn("No
Hi Simon,
I'm fairly sure its just a contour plot with different color mappings for
the lines and the fill.
There are several examples of this on the site.
Start here:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contour
Best of Luck,
Aman
On Thu, Aug 12, 2010
Greetings.
I am making some contour plots and in my field for this particular value,
there are two widely used units. As such, it is very useful to have both
units listed on the colorbar. To clarify: the colorbar's normal ticks would
be facing to the right and labeled with Unit Type 1,
701 - 800 of 1219 matches
Mail list logo