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 sp
(or
fix the initialization of) majorFormatter.
-T
>
>
> On Thu, Oct 7, 2010 at 5:06 PM, Tony S Yu 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.
>>
>>
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 wrote:
> On Thu, Oct 7, 2010 at 1:01 PM, Waléria Antunes David
> wr
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 4, 2010, at 4:30 PM, John Hunter wrote:
> On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu 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 b
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]
>> http://matplotlib.sourceforge.net/examples/pylab_exampl
On Oct 4, 2010, at 3:14 PM, Jouni K. Seppänen wrote:
> Tony S Yu 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 uni
On Oct 4, 2010, at 2:56 PM, Jouni K. Seppänen wrote:
> Joey Richards 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 installed fr
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 plo
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 bar
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 chopp
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 be
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
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:
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 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 u
On Sep 8, 2010, at 2:10 PM, Jeremy Conlin wrote:
> On Wed, Sep 8, 2010 at 10:42 AM, Tony S Yu 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 t
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 subscript
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 :
>> On Sep 3, 2010, at 4:33 AM, Sébastien Barthélemy wrote:
>>
>>> Hello,
>>>
>>> While using sage [1], I got prob
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 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:59 AM, Benjamin Root wrote:
>
>
> On Fri, Aug 20, 2010 at 9:51 AM, Tony S Yu wrote:
>
> On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote:
>
>> On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem wrote:
>> Hi
>>
>> I have on
On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote:
> On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem 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
> find much the
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 sequencial
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 Ocampo wrote:
>>
>>> Good morning
>>>
>>> Do you know where I could get examples of case stories about
>>> commercial or open source software that has been developed usin
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 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, rathe
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
>&g
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
>
There was a recent thread about the font sizes not 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 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 d
On Mar 9, 2010, at 1:22 PM, John Hunter wrote:
> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing 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 this change
>
> 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 mistak
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 leas
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 rcP
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 us
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 fil
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 in the patch varies). I've attached code that almost
does
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
&
ith revisions 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 b
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 be
On Nov 3, 2009, at 1:11 PM, 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 machine, I've used
On Nov 3, 2009, at 3:08 PM, 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
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 sha
On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote:
Anyone?
On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames
wrote:
Guys, there is the code.
On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames
wrote:
Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work
too.
On Mon, Jul 27, 200
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 preferen
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
example
Below is some code to do 1, 2, and 4.
The 3rd issue is a bit more difficult. One approach is to use Jae-
Joon's AxesGrid toolkit; you may need to be using the latest
development version of matplotlib to use the toolkit.
BTW, does anyone know why it's ``ax.set_axis_bgcolor`` instead of
``ax
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 i
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 wrot
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.
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
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 re
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 mat
k you're right: this error doesn't appear
to be matplotlib related. I tried reverting to old revisions of mpl
and that didn't help. Which means, I probably screwed something else
up on my system.
I'll see how things work with ``python setupegg.py develop``. Thanks
for your
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 devel
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 i
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,
Att
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 n
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,
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 valu
On Aug 19, 2008, at 11:37 AM, Ben Axelrod wrote:
When I try using axes.add_artist() to add an Annotation object, it
does not work. Adding a Text object in this manner works fine.
Shouldn’t Annotation also work since it inherits from Text? The
sample code below demonstrates. I am using
On Aug 14, 2008, at 4:51 PM, Jae-Joon Lee wrote:
> Hi Mathieu,
>
> It seems to me that you're confused with the meaning of the transAxes.
> It is a transform from the Axes coordinate to the Canvas(?)
> coordinate.
> As far as I can see, what you seemed to want is a transform between
> Data coor
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 to
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
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 taki
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 provi
On Jun 30, 2008, at 10:22 AM, Nihat wrote:
> ax = gca()
> (x_screen, y_screen) = ax.transData.transform([x[10], y[10])
> (x10, y10) = ax.transAxes.inverted().transform([x_screen, y_screen])
>
> Is it the proper way of doing it? Where can I find more info on
> transformations in general?
I'd re
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
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 ug
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 thi
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 PROTEC
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
78 matches
Mail list logo