On Oct 25, 2010, at 12:56 PM, Lorenzo Isella wrote:
Dear All,
I am aware that this question has already been asked several times on
the mailing list, see e.g.
http://bit.ly/aPzQTA
However, in the following snippet, nothing I tried has been able to
reduce the amount of white space
PM, Tony S Yu tsy...@gmail.com wrote:
On Oct 7, 2010, at 3:38 PM, Waléria Antunes David wrote:
Hi,
I did like the links below, but seeing as it was my chart.
See
My code: http://pastebin.com/KcjHAPLN
On Thu, Oct 7, 2010 at 3:08 PM, John Hunter jdh2...@gmail.com wrote:
On Thu, Oct
On Oct 7, 2010, at 11:54 AM, Waléria Antunes David wrote:
Hi,
I'm asking how to have only the vertical grid lines.?
And I'm trying to increase the spacing in the x direction, I used the
'ax.set_xscale (' log ')', but the points were even more confused.
Do you saw my image that sent
On Oct 7, 2010, at 3:38 PM, Waléria Antunes David wrote:
Hi,
I did like the links below, but seeing as it was my chart.
See
My code: http://pastebin.com/KcjHAPLN
On Thu, Oct 7, 2010 at 3:08 PM, John Hunter jdh2...@gmail.com wrote:
On Thu, Oct 7, 2010 at 1:01 PM, Waléria Antunes
On Oct 4, 2010, at 2:56 PM, Jouni K. Seppänen wrote:
Joey Richards j...@caltech.edu writes:
When I plot with the MacOSX backend using a serif font, the negative
signs on the axis labels show up as the missing glyph open squares
rather than minus signs.
I am using matplotlib 1.0
On Oct 4, 2010, at 3:14 PM, Jouni K. Seppänen wrote:
Tony S Yu tsy...@gmail.com writes:
This is probably unrelated, but I can't even use serif fonts on the
MacOSX backend (it just shows up as sans-serif). I tried Times New
Roman, Vera, and a Computer Modern unicode font that I normally use
On Oct 4, 2010, at 4:09 PM, Friedrich Romstedt wrote:
First attempt at a histogram strip chart (made up name).
if-main block taken from [1] except that I've replaced uniform distributions
with normal distributions.
[1]
On Oct 4, 2010, at 4:30 PM, John Hunter wrote:
On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu tsy...@gmail.com wrote:
I'd like to make something in between a box plot [1] and a histogram. Each
histogram would be represented by a single, tall, rectangular patch (like
the box in a box plot
On Oct 1, 2010, at 9:40 AM, Benjamin Root wrote:On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu tsy...@gmail.com wrote:
I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot
I'd like to make something in between a box plot [1] and a histogram. Each
histogram would be represented by a single, tall, rectangular patch (like the
box in a box plot), and the patch would be subdivided by the bin edges of the
histogram. The face color of each sub-patch would replace the
On Sep 17, 2010, at 8:58 AM, Erik Janssens wrote:
Hi,
I'm using matplotlib in a pyqt context, as described
in the book 'Matplotlib for python developers'.
When the window is large enough, everything works
fine, but when the window is too small part of
the x-axis labels get chopped.
On Sep 16, 2010, at 12:06 PM, Daπid wrote:
No, it is not. The Z channel is an aditional number per pixel that
haves the information of the deepness. When you render an image you
can keep this information for adding mist, without rendering again,
for example.
I don't know if I have been
On Sep 11, 2010, at 12:00 PM, Radek Machulka wrote:
Hi Folks,
I am trying to do something similar to
http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_hist.html,
but with a line plots instead of histograms.
My problem is how to set orientation of line plot if there is no
On Sep 10, 2010, at 5:27 AM, Nils Wagner wrote:
Hi all,
what is needed to save a figure when the size is given in
pixels, i.e. 1024x772 ?
The default is 800x600 pixels.
from pylab import plot, savefig
from numpy import sin,linspace,pi
x = linspace(0,2*pi,200)
plot(x,sin(x))
On Sep 10, 2010, at 10:42 AM, Ted Kord wrote:
Hi
How can I:
1. make the frame of the plot thicker and
2. remove the top and right of the frame.
Thanks
Ted
There are probably a number of ways to do this (partly because spines are
relatively new). Here's one possibility:
import
On Sep 9, 2010, at 10:53 AM, Bernardo Rocha wrote:
Hi everyone,
I would like to know if it is possible (I guess it is) and how can I do a
plot such as the one in the attached figure?
Could someone help me with this? I know that this one was done in gnuplot,
but I would like to use
On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote:
I have trouble getting any symbols or any super/sub scripts to work
since I upgraded to 1.0 a few months ago. I always get a message
saying that some font isn't found. This occurs whenever I try to put
symbols, superscripts, or subscripts
On Sep 8, 2010, at 2:10 PM, Jeremy Conlin wrote:
On Wed, Sep 8, 2010 at 10:42 AM, Tony S Yu tsy...@gmail.com wrote:
On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote:
I have trouble getting any symbols or any super/sub scripts to work
since I upgraded to 1.0 a few months ago. I always
On Sep 3, 2010, at 4:33 AM, Sébastien Barthélemy wrote:
Hello,
While using sage [1], I got problems drawing a line: for some reason,
the points with negative coordinates are not plotted (or are plotted
on top of others due to an offset problem and thus I cannot see them).
I can only
On Sep 3, 2010, at 10:23 AM, Sébastien Barthélemy wrote:
CC to matplotlib-devel matplotlib-users
2010/9/3 Tony S Yu tsy...@gmail.com:
On Sep 3, 2010, at 4:33 AM, Sébastien Barthélemy wrote:
Hello,
While using sage [1], I got problems drawing a line: for some reason,
the points
On Sep 1, 2010, at 5:10 PM, Ali Fessi wrote:
Hi,
is there a way to change the default font, e.g., to Times New Roman?!
I've been looking at the rcparams but it's kind of confusing.
Cheers.
Yes, but first you should make sure the font is on your system and is of the
correct type,
On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote:
On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem eemse...@eso.org wrote:
Hi
I have one very nagging issue which I would like to solve with matplotlib once
and for all: this may have to do with my desktop windown manager but I
couldn't
On Aug 20, 2010, at 10:59 AM, Benjamin Root wrote:
On Fri, Aug 20, 2010 at 9:51 AM, Tony S Yu tsy...@gmail.com wrote:
On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote:
On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem eemse...@eso.org wrote:
Hi
I have one very nagging issue which I
On Aug 17, 2010, at 11:02 AM, Bala subramanian wrote:
Friends,
I am trying to make a figure for publication. I am making a double column
figure of 7inch as per journal guidelines. The figure comes out nicely but
the final size of the figure that is saved is not what i have given in
On Aug 12, 2010, at 1:08 AM, Russell E. Owen wrote:
I'm making a strip chart widget (which I plan to make publicly available
when finished). The basics are working fine, but the automatic sizing is
not doing so well. Strip charts are typically short, and when suitably
short the X axis
On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote:
I extract data out of a database (via Django and Python). I'm drawing two
bar charts. One is a stacked bar, and one is a simple bar.
The code for each graph is in their own function. I call the function to
draw the graph sequencially
On Jul 27, 2010, at 2:14 PM, Mathew Yeates wrote:
I installed matplotlib 1.0 and now I get a different error
s=[0,0,8,8]
ys=[0,8,8,0]
verts=zip(xs,ys)
poly = PolyCollection(verts)
fails at line 587 in collections because
xy = array([0, 0]) # xy.shape = (2,)
and line 587 says xy =
On Jul 27, 2010, at 1:31 PM, ms wrote:
On 27/07/10 15:05, Benjamin Root wrote:
On Tue, Jul 27, 2010 at 6:01 AM, German Ocampogeroca...@gmail.com wrote:
Good morning
Do you know where I could get examples of case stories about
commercial or open source software that has been developed
On Jun 7, 2010, at 11:16 AM, Ian Stokes-Rees wrote:I'm generating a plot of NxN squares, where the size of the squarecorresponds to the correlation between the (i,j) point. Every (i,i)point equals 1.0. I'm using "scatter" to do this, but the sizingappears to be in "points" from the graphic, rather
There was a recentthread about the font sizesnot matching up between regular text and math text. I decided I'd try to get matching font sizes by using computer modern as the default font, so I added the following to my matplotlibrc file:font.family: seriffont.serif: cmr10This fixes the font size
On Apr 29, 2010, at 10:43 PM, Tony S Yu wrote:
On Apr 29, 2010, at 6:09 PM, Michael Droettboom wrote:
Those Computer Modern fonts (specifically the Bakoma distribution of them
that matplotlib includes) use a custom character set mapping where many of
the characters are in completely
On Apr 29, 2010, at 11:51 PM, Tony S Yu wrote:
On Apr 29, 2010, at 10:43 PM, Tony S Yu wrote:
On Apr 29, 2010, at 6:09 PM, Michael Droettboom wrote:
Those Computer Modern fonts (specifically the Bakoma distribution of them
that matplotlib includes) use a custom character set mapping
On Apr 8, 2010, at 8:13 AM, KrishnaPribadi wrote:
Hi,
I'm trying to plot a set of lines, 12 to be exact, and the default color
cycle only supports 8 or 9 distinct colors. That said, I looked up the color
maps and segmented it using 12 constant intervals with the hope of getting
12
On Mar 9, 2010, at 1:22 PM, John Hunter wrote:
On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing efir...@hawaii.edu wrote:
Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from
svn. I have done a little grepping and other exploration, but have
completely failed to find where
Tony S Yu wrote:
On Dec 29, 2009, at 3:35 AM, Dominik Szczerba wrote:
Tony S Yu wrote:
Hey Dominik,
I'd also like to see the default color_cycle be customizeable. But, if
I'm not mistaken, this approach doesn't quite do what you want (at least
it doesn't on a recent version of mpl
On Dec 24, 2009, at 4:21 AM, Dominik Szczerba wrote:
OK I started hacking and added a color_cycle property to matplotlibrc.
Would you be so kind to add this fix to the official version? Thanks!
Dominik
$ diff -w axes.py axes.py.org
135,137c135
# DSZ take defaultColors from rcParams
On Dec 3, 2009, at 3:58 PM, Jae-Joon Lee wrote:
line 1486 of _backend_agg.cpp says
/* TODO: Support clip paths */
So, it seems that, apparently, clipping with arbitrary path has not
been implemented yet for gouraud shading (pcolormesh will be properly
clipped if shading is not used).
On Dec 2, 2009, at 3:53 PM, Tony S Yu wrote:
Hi,
I'm having hard time understanding some of the differences between functions
used to plot color patches (not sure what to call them).
I'm trying to fill a curve with a nonuniform color patch (like fill or
fill_between but the color
On Nov 12, 2009, at 8:16 AM, Michael Droettboom wrote:
Thanks for looking into this further. Can you file a bug with this
script that appears differently in the PDF/PS/SVG/Agg backends vs.
Mac OS X?
Bug filed. Thanks for your response.
-Tony
Cheers,
Mike
Tony S Yu wrote:
On Nov
Hi,
Awhile back, Jae-Joon helped me transform collection sizes from points
to data values by overriding the `get_transform` method of a
RegularPolyCollection (see example code below).
When I tried the code today, the collection didn't appear on the plot.
Removing the get_transform method
between 7950 and 7625;
older versions break the macosx backend on my system (OS X 10.6.1).
-Tony
Mike
Tony S Yu wrote:
Hi,
Awhile back, Jae-Joon helped me transform collection sizes from
points to data values by overriding the `get_transform` method of
a RegularPolyCollection (see
On Nov 3, 2009, at 3:08 PM, phob...@geosyntec.com phob...@geosyntec.com
wrote:
-Original Message-
From: Tony S Yu [mailto:ton...@mit.edu]
Hi Paul,
I think your matplotlibrc file should be put in:
/Users/paul/.matplotlib
-Tony
Thanks Tony, I'll give that a shot. Shouldn't
On Nov 3, 2009, at 1:11 PM, phob...@geosyntec.com wrote:
Hey everyone,
The existence of the matplotlibrc file is one reason I like MPL so
much. I won't go into the convoluted work flow I had for getting my
MATLAB figures completely processed in TeX, but it was nasty.
On my Windows
Hi Giovanni,
Radar plots haven't been added to the core functionality of
matplotlib, but there's an example of a custom radar chart class on
the mpl website:
http://matplotlib.sourceforge.net/examples/api/radar_chart.html
Best,
-Tony
On Oct 17, 2009, at 9:33 AM, Giovanni Bacci wrote:
On Sep 16, 2009, at 8:22 PM, Gökhan Sever wrote:
Hello all,
I want to be able to count predefined simple rectangle shapes on an
image as shown like in this one: http://img7.imageshack.us/img7/2327/particles.png
Which is in my case to count all the blue pixels (they are ice-snow
flake
On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote:
Anyone?
On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames gjha...@gmail.com
wrote:
Guys, there is the code.
On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames gjha...@gmail.com
wrote:
Jae-Joon Lee, savefig(file.png, bbox_inches=tight) doesn't
Josh Hemann wrote:
Tony,
I know this is a year later but your code was hugely helpful to me
last
week, so thank you
I'm glad you found it helpful.
On Jul 28, 2009, at 12:56 PM, Michael Droettboom wrote:
Would you (Josh and Tony) be amenable to us including this in the
set of
On Jul 28, 2009, at 4:53 PM, Josh Hemann wrote:
One small nit: I
don't see any code to set the color or alpha level of the grid
lines. In my
example, I set the color to be a light grey because I wanted the
grid lines
to be seen but not be distracting from the data. Just a preference.
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
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
On Jun 22, 2009, at 2:57 PM, Jae-Joon Lee wrote:
The easiest solution I can think of is doing some monkey patching.
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111)
x = [0.25, 0.75, 0.25, 0.75]
y =
I'd like to plot a collection and scale the size of the collection
elements in relation to the data. My guess is that I need to use the
data transformation (ax.transData) since I would like the size of the
collection elements altered when zooming in/out.
Unfortunately, my attempt has led to
On Jun 6, 2009, at 9:34 AM, John Hunter wrote:
I'm happy to post this example in the examples dir, where it will
automatically get picked up in the website gallery and examples dir.
That'd be great!
The scipy cookbook is fine too, but I would prefer that a little mini
tutorial be written in
I'm running into a really bizarre error that seems to have started
spontaneously (no changes I can think of were made to my system in the
last few days and mpl was plotting without problems up until a few
hours ago). When using WxAgg, the following code raises a malloc error.
import
Correction, this error occurs on all GUI backends I've tried (I don't
have gtk installed). The malloc error didn't occur on the other
backends until I tried to interact with the plot window.
-T
On May 27, 2009, at 12:36 PM, Tony S Yu wrote:
I'm running into a really bizarre error
Hi,
I run mpl from the svn trunk, but I ran into a problem today after
pulling the newest version (my last update was probably a week ago).
The full build output is copied below.
I build from trunk using the following commands:
$ python setup.py build_ext --inplace
$ python setupegg.py
On Apr 21, 2009, at 1:49 PM, Chaitanya Krishna wrote:
But, anyways the point of this mail is to ask if there is a clever way
of making different plots for different circumstances. For example,
trying to make a plot for publication in a journal demands it being
made in one way while using it
On Feb 6, 2009, at 8:45 AM, Zunbeltz Izaola wrote:
Dear all,
I would like to have a plot where the frame only have left and
bottom border. I can not find in the documentation any function to
draw
the Rectangle contained in figure() only with this 2 lines. It is
possilbe?
Hi Zunbeltz,
The GUI neutral animation example from the SciPy cookbook doesn't seem
to work for Wx or WxAgg backends. A plot window opens but nothing
happens. It appears to be some weird problem with ion on wx.
For example, the following code will run and immediately close:
plt.ion()
plt.plot(x, y)
On Oct 23, 2008, at 12:00 PM, John Hunter wrote:
On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu [EMAIL PROTECTED] wrote:
The GUI neutral animation example from the SciPy cookbook doesn't
seem
to work for Wx or WxAgg backends. A plot window opens but nothing
happens. It appears to be some
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?
On Sep 2, 2008, at 6:56 PM, Fredrik Johansson wrote:
Hi,
I've encountered what appears to be a bug in matplotlib-0.98.3
(Windows XP, Python 2.5). The following plot of a function with poles
displays garbage (large filled boxes instead of a curve). There's
large variation in the y values,
On Jul 15, 2008, at 6:17 PM, Andrea Gavana wrote:
Hi All,
I am helping my girlfriend in doing some plots for her thesis (!).
Normally, matplotlib puts the graph in a box, left y axis, bottom x
axis, right y axis, top x axis. What she would like to do is to remove
the right y axis and the
On Jul 12, 2008, at 1:50 PM, Alan wrote:
Hi List,
I use Fink for Mac OSX, tiger 10.4.11.
So with MPL 0.90.1, this script works fine:
from matplotlib.pylab import *
import matplotlib, numpy
print matplotlib.__version, numpy.__version__
att1 = {'color': 'black', 'markerfacecolor': 'red',
On Jun 30, 2008, at 11:13 AM, Michael Droettboom wrote:
transScale is where all of the (optionally) logarithmic
transformation takes place. I'm surprised
transDesired = self.transScale + self.transLimits
didn't work for going from data to a (0, 0) - (1, 1) bounding box.
Can you provide
On Jun 30, 2008, at 10:10 PM, John Hunter wrote:
I'd love for you to take the lead on this. Given my (and other
developers) constraints on time, we'll have only limited time to help,
but hopefully we can give you some pointers when you get stuck.
I don't know if I'm the best person to be
Hi. A couple of questions about `scatter`:Q1The bounding box `axes.dataLim` increases in size when calling scatter(x, y) compared to plot(x, y) (for the same x, y data, of course). I think this change is due to the size of the markers being added to the data limits (not sure if this is true).
I was reading through the projections docs and decided to take a shot
at creating a radar chart class. The layout of the labels and legend
is really off, but other than that, this seems to work OK. I couldn't
figure out a good way to initialize the number of axes/variables, so
there's an
On Jun 15, 2008, at 11:54 AM, Curtis Jensen wrote:
There was recently a post on Radar/Spider plotting
(http://sourceforge.net/mailarchive/message.php?msg_id=4845303A.9050204%40epcc.ed.ac.uk
).
I too am interested in creating Radar plots with matplot. Is there a
simple way to do this?
Wow, a question I can actually answer:
ax1 = subplot(211)
ax2 = subplot(212)
ax1.plot([1,2,3])
ax2.plot([4,3,2])
ax1.plot([3,2,1])
Best,
-Tony
On Jun 10, 2008, at 9:09 AM, Mark Bakker wrote:
Hello list -
I want to plot something in two subplots, then add something to the
first subplot.
Bakker wrote:
Thanks Tony -
I was hoping there was a plyab-ish command.
Like you can do Figure(1), Figure(2), and then reselect Figure(1) to
get access to the first figure. No such command for subplot, I
understand.
Cheers, Mark
On Tue, Jun 10, 2008 at 3:27 PM, Tony S Yu [EMAIL PROTECTED
71 matches
Mail list logo