Ryan May wrote:
> On Mon, Feb 16, 2009 at 7:22 AM, Manuel Metz wrote:
>
>> Attached is a very simple example that shows how to do something similar
>> to scatterhist in matplotlib
>>
>>
> That's a nice example. Are you going to check
Attached is a very simple example that shows how to do something similar
to scatterhist in matplotlib
Manuel
per freem wrote:
> hello,
>
> is there a way to make a 2d scatter plot that includes (outside the axes)
> histograms of the marginals of the two variables? like the matlab function
> 'sca
Zane Selvans wrote:
> It seems like there ought to be an easy way to associate labels with the
> various groups of patches generated by a call to hist() that uses a list
> of arrays, setting label=["a", "list", "of", "strings"] for instance,
> instead of having to go in and label one patch from
Manuel Metz wrote:
> Alejandro Weinstein wrote:
>> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <[EMAIL PROTECTED]> wrote:
>>> You can use the keyword "numpoints" in the legend method:
>> Thank you! It did the trick.
>>
>> Now how you conclude t
Alejandro Weinstein wrote:
> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <[EMAIL PROTECTED]> wrote:
>> You can use the keyword "numpoints" in the legend method:
>
> Thank you! It did the trick.
>
> Now how you conclude that from the documentation is a mystery
Alejandro Weinstein wrote:
> Hi:
>
> I am plotting using markers, in a similar way than this example:
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html
>
> As you can see in the example above, the markers in the legend appear
> twice: " 'green circle' 'green circle'
Manuel Metz wrote:
> Yang Zhang wrote:
>> Hi, when I do:
>>
>>hist([0,0,0], bins=10, range=(0,10))
>>
>> How come the single bin takes up the entire plot? Same with just two
>> values, or anything less than 10 - the two bars take up the entire plot,
Yang Zhang wrote:
> Hi, when I do:
>
>hist([0,0,0], bins=10, range=(0,10))
>
> How come the single bin takes up the entire plot? Same with just two
> values, or anything less than 10 - the two bars take up the entire plot,
> no matter what I plug in for range. I'd just like 10 bins, from
Jeremy Conlin wrote:
> I have a function (shown below) that would take a 3D numpy array and plot
> points in 3D. I recently updated my matplotlib with the latest Enthought
> Python Distribution and now it doesn't work; I guess matplotlib changed the
> api a little bit.
>
> The first problem arise
Antonino Cucchiara wrote:
> Hello list,
> I am trying to run the "histogram_demo_extended.py" on my mac 10.5.
> I installed matplotlib through the scisoft package.
> The normal hist command works fine but when I tried to use "align" or
> "histtype" keyward I get this kind of error:
>
> [Macintosh
Mark Bakker wrote:
> Can we set the markerspacing in mpl?
>
> If I do
>
> plot( linspace(0,10,100), 'o' )
You can try the following approach: First plot the line and then plot
the markers separately (and set colors).
x = linspace(0,10,100)
y = x
plot(x, y, '-')
plot(x[::10], y[::10], linestyle
stuartornum wrote:
> Hi,
>
> I am just playing around with different shapes and colours at the moment, I
> have managed the "standard" colours like this:
>
> plot(Time, Value, 'r.')
>
> Which obviously prints a red dot.
>
> However how do use the hex colour map with the ".", I have tried:
>
>
Antonino Cucchiara wrote:
> Hi,
> I have some graphs with lower and upper limits. I found a couple of
> ideas online, but nothing like "plotting symbols" like arrows.
> I am using the mathtex upperarrow symbol but it is quite unconfortable
> positioning the tex character in the righ X-Y position.
sa6113 wrote:
> I am using matplotlib to draw and show my plot, now I want to know how may I
> add manual axes scale to it.
> I need to manually show the axes scale (from min to max value that I have)
> the below is some part of my code.
> .
> .
> .
> from matplotlib.figureimport Figure
>
>
John Hunter wrote:
> On Wed, Jul 16, 2008 at 6:12 AM, Angela Rivera Campos <[EMAIL PROTECTED]>
> wrote:
>> Hi, again
>>
>> I've trying to install everything, from the begining on another machine,
>> this one's running openSUSE 10.3. So I've installed the latest versions of
>> numpy, scipy and matp
John Hunter wrote:
On Mon, Jul 14, 2008 at 3:05 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
I can confirm this.
Commenting out "del Gcf.figs[num]" in Gcf.destroy (in _pylab_helpers.py)
also seems to resolve the leak. But I have no idea why, so I won't
commit it just yet. I don't have mu
Michael Droettboom wrote:
> Which backend?
GTK, GTKAgg, TK, but not with any backend without a window: Agg, Cairo,
PS, PDF, SVG ...
Cheers,
Manuel
> Cheers,
> Mike
>
> Manuel Metz wrote:
>> Michael Droettboom wrote:
>>> Thanks for the report. So we can
Michael Droettboom wrote:
> Thanks for the report. So we can diagnose this, what version of
> matplotlib are you reporting this for?
>
> Also, you may be interested in the following FAQ (and the one following it):
>
> http://matplotlib.sourceforge.net/faq.html#LEAKS
Hi,
I tested this with
Angela Rivera Campos wrote:
> Hi,
>
> I'm quite a newbie on matplotlib.
>
> I'm trying to get some data from a file. I've got a function that reads
> the data from the file and stores it in a tuple as a set of floats. When
> I use this without importing pylab it just go well but when I do it
>
Hi Florian,
you should try "import pylab" or "import pylab as P". "from pylab
import *" might overwrite some functions or methods ... if a pylab
function/method has the same name as one in a module imported with * before.
See the following example:
#file a.py
def foo():
print "I'm a"
#
Eric Firing wrote:
> Michael Droettboom wrote:
>> As a quick-fix workaround, you can do:
>>
>> from matplotlib.pyplot import *
>> p = scatter([0,1,2,3], [4,5,6,7], c ='k', alpha=0, edgecolor = 'k')
>> p._alpha = 1.0
>> p.set_edgecolor('k')
>> show()
>>
>> But the deeper question is for the rest of
Neil Crighton wrote:
> I'd like to plot values where the area of a marker is proportional to
> some value. How is the size value given in, say:
>
> scatter(x,y,'o',s=10)
>
> used to generate the markers? By eye it looks like the size value is
> proportional to the area (i.e. proportional to the
Hi Glenn,
please update numpy!!! Indeed, it is the other way around: The "new"
keyword-arg isn't deprecated it is *NEW* (has been added in numpy
revision r5085, you are using r5077). Have a look at this:
http://projects.scipy.org/scipy/numpy/roadmap#Semanticchangeforhistogram
Please note that
Søren Nielsen wrote:
> Hi,
>
> I'm using wxpython with matplotlib, I now have a figurecanvas embedded in my
> program and I can plot stuff using:
>
> a = self.fig.gca()
> a.plot(x,y)
>
> But what is the easiest and fastest way to draw a circle? I saw that the
> artist class has a draw_arc functi
Andrea Gavana wrote:
Hi All,
I was wondering about custom markers in the scatter method, and I
thought to ask here for some suggestions.
Basically, I have 3 variables to show, which are oil, gas and water
production. I would like to define the bubble size by the sum of these
three variables (
Jochen Küpper wrote:
> Hi,
>
> when I create a contour plot with the following grid:
>xval = [ 1.3324, 1.9971, 1.00016618]
>yval = [250, 260, 270]
>data = ones((3,3))
>contourf(xval, yval, data)
>
> matplotlib creates a contour plot with an x-axes labels of
> "0.32
Paul Smith wrote:
> I'm plotting two curves in one subplot with twinx to allow different y
> scales.
> The script below is an example.
> When zooming in using zoom-to-rect on Tk's navigation toolbar2 (TkAgg is my
> backend) I think the x axis part of the zoom is happening twice.
> Rubberbandin
carlwenrich wrote:
> without having to increase the width of the whole chart?
Have a look at examples/major_minor_demo1.py and
examples/major_minor_demo2.py. I guess you are looking for something
like this ...
Manuel
-
Ch
bol gets rotated by this angle
So in principle with this you can produce an endless number of different
markers... :-)
Manuel
--
---
Manuel Metz [EMAIL PROTECTED]
Argelander Institut fuer Astronomie
Auf dem Huegel 71 (room 3.06)
D - 53121 Bon
Fred Mailhot wrote:
> Hi there,
>
> I've got 4 time series that live in a 2-d space (imagine points at
> (1,1), (1,2),(2,1), and (2,2) that drift a little over time), and I'm
> using scatter() to show them. How can I plot so that each of the
> groups of points has the same colour?
>
> I've checke
Erik Tollerud wrote:
> I use the scatter(x,y) command to make scatter plots, but I noticed
> today (on the SVN version of mpl) that when I call legend() after
> giving scatter(x,y,label='somelabel') , the legend doesn't show the
> marker symbols - it only has a square patch colored in the color th
Mark Bakker wrote:
> Alan -
>
> You started a discussion about dpi on the figures.
> Yet here you claim that 1pt = 1/72 inch.
> Is that always the case?
Yes, I that's *by definition* always the case !
pt is a point - not a dot or a pixel !!!
"Point" is a unit of measurement used in typography t
Cheng-Kong Wu wrote:
> Dear all,
>
> I am working on sending vibration results to two
> plots: subplot(211) and subplot(212). I have the
> following questions:
>
> 1. How to define the size of the figure? I will
> eventually import the figure into Microsoft Word, and
> I hope I can fit the figure
Michael Droettboom wrote:
> You need to escape the [:
>
>mpl_pp.xlabel(r"$\[$")
>
> [] and {} have special meanings in math syntax, so to use them
> "literally", they need to be escaped.
Really? Note that Matthias had text.usetex=False.
I tried various configurations:
text.usetex=True
[EMAIL PROTECTED] wrote:
> matalb has a gscatter command that work like this"
>
> GSCATTER(X,Y,G) creates a scatter plot of the vectors X and Y
> grouped by G. Points with the same value of G are shown with
> the same color and marker. G is a grouping variable defined as
> a vector,
[EMAIL PROTECTED] wrote:
> Thanks ! i didn't know that.
> Do you know also if it is possible to have something similar to a scatter
> group ?
Sorry, but what do you mean by "scatter group" ?
> Thanks
> Giorgio
-
Check out
Hi,
you are limited to 10 "named" symbols. But you can use much more symbols
with scatter !!! Have a look at examples/scatter_star_symbols.py.
You can use:
pylab.scatter(x,y,marker=(5,0))
produces a 5-sided regular polygon.
pylab.scatter(x,y,marker=(5,1))
produces a starlike polygon
Darran Edmundson wrote:
> Two simple questions:
>
> 1) How does one create a simple xy plot with a user-specified y-axis
> range? Combination of setting kwargs ylim and autoscale_on doesn't seem
> to do it ...
pylab.ylim( (ymin, ymax) )
or
pylab.gca().set_ylim( (ymin, ymax) )
?
> 2) If I
John,
svn works fine now. thanks.
John Hunter wrote:
> On 10/18/07, John Hunter <[EMAIL PROTECTED]> wrote:
>
>> You should use the "c" argument for scatter -- this controls the facecolor.
>>
>> scatter(x,x+0.5, c='blue', s=50, alpha=0.5)
>>
>> This is a bit of an anachronism from matlab compatibi
It seems that the keywords facecolor (or color) and alpha can not be
used simultaniously when using "scatter":
import pylab
x = pylab.npy.arange(0,10)
pylab.scatter(x,x, s=50, alpha=0.5)
pylab.scatter(x,x+0.5, facecolor='blue', s=50, alpha=0.5)
pylab.show()
The alpha value of the second call
Hi,
pylab.scatter(x,y)
pylab.errorbar(x,y,yerr,linestyle='None')
if you want to use scatter, or alternatively:
pylab.errorbar(x,y,yerr,fmt='o',linestyle='None')
Manuel
Armen Nalian wrote:
> Hello,
> I was wondering where I can get an example of a scatter plot with error
> bars.
> I have time
Hi,
pylab.scatter(x,y)
pylab.errorbar(x,y,yerr,linestyle='None')
if you want to use scatter, or alternatively:
pylab.errorbar(x,y,yerr,fmt='o',linestyle='None')
Manuel
Armen Nalian wrote:
> Hello,
> I was wondering where I can get an example of a scatter plot with error
> bars.
> I have time
On a Linux box:
psmerge -ooutfile.ps figure1.eps figure2.eps
Anyway, I guess you need an external tool to do this ...
Manuel
Lingyun Yang wrote:
> Hi,
>
>I am using matplotlib to visualize my data, but the data sometimes have
> several sets.
> Can I plot each set as usual to a EPS file,
43 matches
Mail list logo