Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Damon McDougall
Hi Phillip, Don't you need to call pyplot.show() at the end of the script? Regards, --Damon On 15 Jul 2009, at 22:58, Dr. Phillip M. Feldman wrote: I'm a newbie to matplotlib. When I try to generate a simple plot, nothing happens. Any advice will be appreciated. Here's my code:

[Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Hello all, So I'm trying to use matplotlib's OO interface (so programming without using 'from pylab import *') and found this useful page:http://matplotlib.sourceforge.net/leftwich_tut.txt after much googling. My problem is that, in general, after producing a plot, I would open the .pdf

Re: [Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Sorry, I forgot to use a sensible subject for the email! Regards, --Damon On 12 Aug 2009, at 16:35, Damon McDougall wrote: Hello all, So I'm trying to use matplotlib's OO interface (so programming without using 'from pylab import *') and found this useful page:http

Re: [Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Jae-Joon, Brilliant! An even simpler solution! Thank you very much :) Figure.savefig() also takes pad_inches as a keyword argument and it's default is 0.1 inches. If you set it to 0.0 inches it can sometimes crop some of the x-axis label. I have found that if you do fig.savefig(a.pdf,

Re: [Matplotlib-users] error locating backends module

2009-09-14 Thread Damon McDougall
Forgot to cc this to the list, sorry about that. Hi Jeff, You don't happen to be in the same directory as a folder called 'matplotlib' when trying to import matplotlib.backends, do you? If so, try moving to a different directory before invoking python and importing matplotlib.backends.

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Damon McDougall
files: fontList.cache, fontManager.cache and tex.cache. Hope this explains more. Thanks in advance for any help. Regards, --Damon On 15 Sep 2009, at 11:42, Jouni K. Seppänen wrote: Damon McDougall damon.mcdoug...@gmail.com writes: from matplotlib.figure import Figure ValueError: invalid

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Damon McDougall
, --Damon On 15 Sep 2009, at 12:49, Jouni K. Seppänen wrote: Damon McDougall damon.mcdoug...@gmail.com writes: (Pdb) p fh closed file '/Users/Damon/Library/Fonts/lcmssi8.afm', mode 'r' at That's a font that probably came with a TeX distribution and somehow got installed in your font library

Re: [Matplotlib-users] quiver without any scaling

2009-11-22 Thread Damon McDougall
Hi Xavier, You can pass some handy keyword arguments to fix that. Use the following: quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1) Hope that helps :) Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4

Re: [Matplotlib-users] quiver without any scaling

2009-11-23 Thread Damon McDougall
expanding. ymin=%s, ymax=%s'%(ymin, ymax)) is this correct, or is it a bug? I'm using ipython -pylab with the MacOSX backend. I was expecting axis('tight') would scale the axes so I could see the whole arrow. Regards, -- Damon -- Damon McDougall Mathematics Institute

Re: [Matplotlib-users] quiver without any scaling

2009-11-24 Thread Damon McDougall
Hi Xavier, I'm sorry. As I don't know a great deal about the nuts and bolts of matplotlib, I don't think I'm well enough equipped to answer your question. Perhaps someone else on this list can help out? Regards, -- Damon -- Damon McDougall Mathematics Institute

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Damon McDougall
Hi Gökhan, Do you have usetex=True set? If so, have you tried the LaTeX command sequence \color{red}{Red text goes here} ? Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 11 Jan 2010, at 05

Re: [Matplotlib-users] newbie question: type check?

2010-01-12 Thread Damon McDougall
that helps. Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 12 Jan 2010, at 10:40, Nico Schlömer wrote: Hm. print type( gca() ) print gca().__class__ print isinstance( gca

Re: [Matplotlib-users] Remove the white padding from a figure

2010-01-14 Thread Damon McDougall
Hi Ronald, I use: fig.savefig('graph.eps', bbox_inches='tight', pad_inches=0.03) Play with the parameters and see what you like. Hope that helps. Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug

[Matplotlib-users] [matplotlib-users] Figure dimensions issues

2010-01-18 Thread Damon McDougall
-- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk -- Throughout its 18-year history, RSA Conference consistently attracts the world's best

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
. Any ideas? Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 2 Aug 2010, at 16:48, Damon McDougall wrote: Hi all, So I'm generating a figure for a paper and I'd like to be able to use

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
Actually I'm wrong, the error says 'Missing \begin{document}'. Sorry for the spam. Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 2 Aug 2010, at 17:41, Damon McDougall wrote: After some

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
So it turns out that text.latex.preamble : '\usepackage{amsmath},\usepackage{amssymb}' is not valid, but text.latex.preamble : \usepackage{amsmath},\usepackage{amssymb} is valid. Everything works fine now. Regards, -- Damon -- Damon McDougall Mathematics Institute

[Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
with matplotlib not looking in the right place for the fonts? Can anybody out there provide any suggestions? Damon McDougall d.mcdoug...@warwick.ac.uk http://damon.is-a-geek.com B2.39 Mathematics Institute Coventry West Midlands CV4 7AL

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
texlive-latex-extra so the fonts are there. typ1cm.sty lives in /opt/local/share/texmf-texlive-dist/tex/latex/type1cm/). Maybe it's a problem with matplotlib not looking in the right place for the fonts? Can anybody out there provide any suggestions? Damon McDougall d.mcdoug...@warwick.ac.uk

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
More diagnostics.I ran the fonts_demo.py example and saved the plot as a .png (this time using the macosx backend). See attached for the result, and compare with http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/fonts_demo.hires.pngI also got the following font warnings

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
dependencies. Damon McDougall d.mcdoug...@warwick.ac.uk http://damon.is-a-geek.com B2.39 Mathematics Institute Coventry West Midlands CV4 7AL -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-15 Thread Damon McDougall
can do locate dvipng to do a search for the binary if it isn't already in your path. P.S. You forgot to reply-all so everyone can see your response. Damon McDougall d.mcdoug...@warwick.ac.uk http://damon.is-a-geek.com B2.39 Mathematics Institute Coventry West Midlands CV4 7AL

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-16 Thread Damon McDougall
there'll be a section of text sent to stdout under the heading of 'OPTIONAL DEPENDENCIES', there it will tell you whether it found dvipng when it was building. Are you able to find this? If not, are there install logs saved somewhere after you installed matplotlib? Damon McDougall d.mcdoug

Re: [Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-16 Thread Damon McDougall
a postscript file. Damon McDougall d.mcdoug...@warwick.ac.uk http://damon.is-a-geek.com B2.39 Mathematics Institute Coventry West Midlands CV4 7AL -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-17 Thread Damon McDougall
you can see what's going on. Damon McDougall d.mcdoug...@warwick.ac.uk http://damon.is-a-geek.com B2.39 Mathematics Institute Coventry West Midlands CV4 7AL -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system

[Matplotlib-users] Axes.fill_between() for two arbitrary curves

2012-04-16 Thread Damon McDougall
' kwarg to no avail. Since they are not circles, I figured this is a no-go with the current matplotlib Axes.* functions. Is my best bet to build a PolyCollection or a matplotlib.patch and add it to the axes myself? Any help is greatly appreciated. Thank you. -- Damon McDougall d.mcdoug

Re: [Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Damon McDougall
Hi Kacper, Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it plt.tricontour(…)? -- Damon McDougall d.mcdoug...@warwick.ac.uk (mailto:d.mcdoug...@warwick.ac.uk) http://damon.is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United

Re: [Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Damon McDougall
On Monday, 16 April 2012 at 16:34, Kacper Kowalik wrote: On 16 Apr 2012 22:31, Damon McDougall d.mcdoug...@warwick.ac.uk (mailto:d.mcdoug...@warwick.ac.uk) wrote: Hi Kacper, Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it plt.tricontour(…)? It's

Re: [Matplotlib-users] [matplotlib-users] How to plot digamma function (psi)

2012-07-10 Thread Damon McDougall
/2 + 1/x)) plot(x, y) show() You can compare output against this: http://www.wolframalpha.com/input/?i=digamma%281%2F2+%2B+1%2Fx%29+between+0.5+and+2 Hope this helps. -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL

Re: [Matplotlib-users] [matplotlib-users] How to plot digamma function (psi)

2012-07-10 Thread Damon McDougall
On Tue, Jul 10, 2012 at 08:57:24AM -0400, Benjamin Root wrote: On Tue, Jul 10, 2012 at 7:05 AM, Damon McDougall damon.mcdoug...@gmail.comwrote: On Tue, Jul 10, 2012 at 12:27:59PM +0200, Fabien Lafont wrote: But It returns zero division error even when x is in ]0,1] I think it blows

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-10 Thread Damon McDougall
, that error function is nifty... :) -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Live Security Virtual Conference Exclusive

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-11 Thread Damon McDougall
On Tue, Jul 10, 2012 at 05:36:50PM -0400, Tony Yu wrote: On Tue, Jul 10, 2012 at 1:52 PM, John Hunter jdh2...@gmail.com wrote: On Tue, Jul 10, 2012 at 12:49 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: Would there be any interest in porting some of that functionality

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-11 Thread Damon McDougall
On Wed, Jul 11, 2012 at 10:23:32AM -0500, John Hunter wrote: On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: Well, as Ben said, that error fill plot is neato! It doesn't look too complicated, either. I'd be more than happy to port it over later today

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-12 Thread Damon McDougall
On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-12 Thread Damon McDougall
On Thu, Jul 12, 2012 at 09:41:32AM -0400, Tony Yu wrote: On Thu, Jul 12, 2012 at 9:28 AM, Damon McDougall damon.mcdoug...@gmail.comwrote: On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed

Re: [Matplotlib-users] Font in figures

2012-07-12 Thread Damon McDougall
Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users Hi David, Have you set usetex=True in your rcParams? -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] histogram scaling

2012-07-12 Thread Damon McDougall
more flexbility to the current histogram implementation. I wonder whether this would be worth a pull request? -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-12 Thread Damon McDougall
On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-13 Thread Damon McDougall
On Wed, Jul 11, 2012 at 08:33:21PM -0400, Tony Yu wrote: On Wed, Jul 11, 2012 at 2:28 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 11:23 AM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com

Re: [Matplotlib-users] histogram withx axis dates

2012-07-14 Thread Damon McDougall
a bar chart with a date x axis or do I have to roll my own? -- Cheers. Mark Lawrence. Everything I said was not at all specific to histograms :) -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] path effects question

2012-07-14 Thread Damon McDougall
.set_alpha(self._patch_alpha)? have been an alpha blending reason for this? Ben Root -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] [matplotlib-devel] ANN: mpltools 0.1 release

2012-07-17 Thread Damon McDougall
On Tue, Jul 17, 2012 at 08:21:50AM -0500, Benjamin Root wrote: On Tue, Jul 17, 2012 at 6:25 AM, todd rme toddrme2...@gmail.com wrote: On Wed, Jul 11, 2012 at 5:23 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com

Re: [Matplotlib-users] Combining 4 plots into one figure

2012-07-19 Thread Damon McDougall
/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry

Re: [Matplotlib-users] Combining 4 plots into one figure

2012-07-19 Thread Damon McDougall
suppose there is always just manually creating a new file with Inkscape and adding the a), b), c), and d) labels manually in there. Thanks for all the suggestions. -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United

Re: [Matplotlib-users] [matplotlib-users] How to switch colormaps

2012-07-20 Thread Damon McDougall
to differenciate the curves. Sure. Here's an example I cooked up for you: https://gist.github.com/3150091 Hope that helps. Is it possible? Fabien -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

[Matplotlib-users] 2D Quiver in Axes3D

2012-07-20 Thread Damon McDougall
of a contour plot on the (x, y)-plane, I want a quiver plot there. Any ideas? Thank you :) -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] 2D Quiver in Axes3D

2012-07-20 Thread Damon McDougall
On Fri, Jul 20, 2012 at 10:12:43AM -0500, Benjamin Root wrote: On Fri, Jul 20, 2012 at 8:50 AM, Damon McDougall damon.mcdoug...@gmail.comwrote: Howdy all, Not sure if I'm being a giant noob, but is there any way to plot a vector field (a la quiver) on the (x, y)-plane of an Axes3D

Re: [Matplotlib-users] Possible to change MPL color scheme?

2012-07-23 Thread Damon McDougall
/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Damon McDougall
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] scatter plot individual alpha values

2012-08-08 Thread Damon McDougall
the same thing with alpha values? You can use a colormap with varying alpha values. Would it be possible to do something like ax.plot(x, y, color=[c1, c2, c3], alpha=[a1, a2, a3])? It doesn't seem that it's supported and that would be the 'natural' extension, in some sense. -- Damon McDougall http

Re: [Matplotlib-users] help me Velocity depth plot in matplotlib

2012-08-10 Thread Damon McDougall
-- *Satish Maurya* *Research Scholar* -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] New tutorial (beginner level)

2012-08-10 Thread Damon McDougall
:) -- Damon McDougall http://damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Live Security Virtual Conference Exclusive live event will cover all the ways

Re: [Matplotlib-users] help me Velocity depth plot in matplotlib

2012-08-10 Thread Damon McDougall
On Fri, Aug 10, 2012 at 12:47:22PM +0100, Damon McDougall wrote: On Fri, Aug 10, 2012 at 02:09:39PM +0530, satish maurya wrote: Dear All, I want to stairs plot (similar in matlab) matplotlib First i want for i data-set then multiple data-set super impose on that. I attach the figure

Re: [Matplotlib-users] Stride size in mplot3d

2012-08-13 Thread Damon McDougall
=5 and cstride=5 will plot every 5th row and every 5th column, giving 20 lines in each direction. The kwargs rstride and cstride do not care about the domain of your data. Hope this helps. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry

Re: [Matplotlib-users] problem with png image

2012-08-22 Thread Damon McDougall
, fig_height*3 figure() plt.subplot(2,1,1) plot(np.random.rand(10),'o') plt.subplot(2,1,2) plot(np.random.rand(10),'o') pic_name='fit_rates2.png' path_name='/home/petro/tmp/' plt.savefig(path_name + pic_name) What backend are you using? print plt.get_backend() -- Damon

Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Damon McDougall
function plot at 0x10cddbd70 In [6]: print plt.plot function plot at 0x10cddbd70 They are *literally* the same function in memory. Hope this helps, Michael. Good luck! -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4

Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-24 Thread Damon McDougall
On Fri, Aug 24, 2012 at 09:20:47PM +0100, Damon McDougall wrote: Hey Michael! Welcome :) On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote: Relatively new user here. I need to place a series of white colored dots on a map. I've been able to place black dots using

Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-25 Thread Damon McDougall
On Fri, Aug 24, 2012 at 02:39:12PM -0700, Michael Rawlins wrote: From: Damon McDougall damon.mcdoug...@gmail.com To: Michael Rawlins rawlin...@yahoo.com Cc: matplotlib-users@lists.sourceforge.net matplotlib-users@lists.sourceforge.net Sent: Friday

Re: [Matplotlib-users] for a log y axis, set_major_formatter then twiny() removes the set_major_formatter

2012-08-25 Thread Damon McDougall
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] plotting a colored symbol with plot command

2012-08-25 Thread Damon McDougall
On Sat, Aug 25, 2012 at 07:59:52AM -0700, Michael Rawlins wrote: From: Damon McDougall damon.mcdoug...@gmail.com To: Michael Rawlins rawlin...@yahoo.com Cc: matplotlib-users@lists.sourceforge.net matplotlib-users@lists.sourceforge.net Sent: Saturday

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Damon McDougall
On Thu, Aug 30, 2012 at 05:50:18PM +0200, Fabien Lafont wrote: Hello, Do you know to change the size of the numbers under the axis? import matplotlib matplotlib.rcParams['axes.labelsize'] = 12.0 Hope this helps. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Damon McDougall
On Thu, Aug 30, 2012 at 12:04:48PM -0400, Benjamin Root wrote: On Thu, Aug 30, 2012 at 11:58 AM, Fabien Lafont lafont.fab...@gmail.comwrote: There is no effect... 2012/8/30 Damon McDougall damon.mcdoug...@gmail.com On Thu, Aug 30, 2012 at 05:50:18PM +0200, Fabien Lafont wrote

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Damon McDougall
parameters.' % (key,)) KeyError: 'xticks.labelsize is not a valid rc parameter.See rcParams.keys() for a list of valid parameters.' It's actually 'xtick.labelsize'. No 's'. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Damon McDougall
'] = 12.0 ?? Wait a minute. What exactly are you trying to do? -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Live

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Damon McDougall
then just make a copy before you change it: cd ~/.matplotlib cp matplotlibrc matplotlibrc_orig then edit matplotlibrc. Just rename matplotlibrc_orig back to matplotlibrc when you're done. -- Damon McDougall http://www.damon.is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Damon McDougall
, but when I use script, it also works :P That's an awesome idea. Glad it's working now. Chao On Mon, Sep 3, 2012 at 8:13 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Mon, Sep 3, 2012 at 6:08 PM, Chao YUE chaoyue...@gmail.com wrote: Yet if I don't want to change the rc file

Re: [Matplotlib-users] legend(loc='best') not so great

2012-09-12 Thread Damon McDougall
On Wed, Sep 12, 2012 at 5:57 PM, Aronne Merrelli aronne.merre...@gmail.com wrote: On Tue, Sep 11, 2012 at 10:49 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Sep 11, 2012 at 3:34 PM, Neal Becker ndbeck...@gmail.com wrote: OK, I've attached my sanitized example ImportError

Re: [Matplotlib-users] linestyles in matplotlib.pyplot.plot

2012-09-12 Thread Damon McDougall
to have user-defined linestyles? How? User-defined line styles is difficult. There is an open github issue on this topic: https://github.com/matplotlib/matplotlib/issues/346 Though, porting some of the existing markers over as linestyles would be a nice addition, I think. -- Damon McDougall http

[Matplotlib-users] John Hunter awarded PSF's Distinguished Service Award

2012-09-14 Thread Damon McDougall
to the immense effort of John and the matplotlib developers over the past decade. Best, Damon -- Damon McDougall http://www.damon.is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] overwriting suptitle?

2012-09-18 Thread Damon McDougall
://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users Fixed in https://github.com/matplotlib/matplotlib/pull/1276. -- Damon

Re: [Matplotlib-users] netcdf4-python build

2012-09-21 Thread Damon McDougall
this be fixed? MR From what I remember dealing with the netcdf c library, you have to explicitly set a compile flag to enable hdf5 support. That was a while ago, though. I'm not sure if things have changed. Hope this helps. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics

Re: [Matplotlib-users] install problem on OSX 10.8

2012-09-21 Thread Damon McDougall
machines at all. Apple even dropped support for some 64-bit machines in the 10.8 release. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread Damon McDougall
to me. Do you have rcParams['text.usetex']=True? -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Live Security Virtual

[Matplotlib-users] How to remove an element from cbook.Grouper()

2012-09-25 Thread Damon McDougall
Hi, I'm playing with cbook.Grouper(), and I see that join() adds elements. How do I remove elements? Best, Damon -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] bug with bar graph when plotting zero values?

2012-09-27 Thread Damon McDougall
compared to whatever the current scale on the y-axis is. Or call ax.set_xlim yourself after plotting? It's not ideal, but does it help? Like Ben said, the bbox should account for all possible bar locations, regardless of height, for this to behave as expected. -- Damon McDougall http://www.damon

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Damon McDougall
is it for? Best regards, Michael Confirmed. I don't see imlim anywhere except in the imshow() signature. I have no recollection of this parameter, so it might be from before my time. Ben Root Is there some functionality you were looking for or were you just exploring the codebase? -- Damon

[Matplotlib-users] Fwd: imlim in ax.imshow

2012-10-02 Thread Damon McDougall
Forgot to reply all. Sorry. -- Forwarded message -- From: Damon McDougall damon.mcdoug...@gmail.com Date: Tue, Oct 2, 2012 at 7:09 PM Subject: Re: [Matplotlib-users] imlim in ax.imshow To: K.-Michael Aye kmichael@gmail.com On Tue, Oct 2, 2012 at 5:51 PM, K.-Michael Aye

Re: [Matplotlib-users] X Window System error

2012-10-02 Thread Damon McDougall
axis may not make a huge amount of sense, but at least you'll see all your data. Or, perhaps even a histogram? It's hard to advise without knowing your application, but that should help at least a little. Good luck! Best wishes, Damon -- Damon McDougall http://www.damon-is-a-geek.com B2.39

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Damon McDougall
On Tue, Oct 2, 2012 at 8:00 PM, K.-Michael Aye kmichael@gmail.com wrote: On Oct 2, 2012, at 11:09 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Oct 2, 2012 at 5:51 PM, K.-Michael Aye kmichael@gmail.com wrote: On Oct 2, 2012, at 6:33 AM, Damon McDougall

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Damon McDougall
On Tue, Oct 2, 2012 at 8:07 PM, K.-Michael Aye kmichael@gmail.com wrote: On Oct 2, 2012, at 12:06 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Oct 2, 2012 at 8:00 PM, K.-Michael Aye kmichael@gmail.com wrote: On Oct 2, 2012, at 11:09 AM, Damon McDougall

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Damon McDougall
in zip(axes, narr): ax.imshow(im, extent=[0,100,0,100]) plt.show() -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
On Thu, Oct 4, 2012 at 10:44 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Thu, Oct 4, 2012 at 10:02 AM, Pierre Haessig pierre.haes...@crans.org wrote: Hi Fernando, Le 04/10/2012 09:16, Fernando Perez a écrit : This would make for an awesome couple of examples for the gallery

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
by a 10px Gaussian Point Spread Function (if I understand correctly...) Best, Pierre Adding Gaussian noise to each point on a function doesn't look nice. That's why I produced a random function in Fourier space first. That way, random functions still have some sense of smoothness. -- Damon

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
and Y of the functions are affected now, giving them a more natural look in the slopes. Juergen I think I actually prefer your output over mine :) Nice job. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL

Re: [Matplotlib-users] XKCD style graphs?

2012-10-05 Thread Damon McDougall
images because I didn't manage to put them in the Gist (it's not a plot image but gives the idea of line shaking). Now, I think it's unfortunately outside the frame of Fernando's challenge, because this script uses zero matplotlib methods!! Best, Pierre This thread has made my week. -- Damon

Re: [Matplotlib-users] Problem with shared axis

2012-10-05 Thread Damon McDougall
-axis-but-dont-show-x-axis-tick-labels-for-both-just-one -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Don't let slow

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Damon McDougall
. Thanks for that link, Nelle! Yes, that site was *full* of eye-candy. It's maybe a bit over the top, but it's certainly a good reference. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Damon McDougall
and such) on an alternative gallery page. The figures you linked look shinny but not much practical use in my field. Point taken on the context argument. I'll take that. To resolve it, make the figure/html image link to the underlying publication? -- Damon McDougall http://www.damon-is-a-geek.com B2.39

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Damon McDougall
On Fri, Oct 5, 2012 at 8:58 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Oct 5, 2012 at 1:23 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Fri, Oct 5, 2012 at 8:11 PM, Gökhan Sever gokhanse...@gmail.com wrote: Seeing mpl produced plots would be only 1 or 2 clicks away

Re: [Matplotlib-users] automating-xkcd-diagrams-transforming-serious-to-funny

2012-10-05 Thread Damon McDougall
On Fri, Oct 5, 2012 at 11:18 PM, Neal Becker ndbeck...@gmail.com wrote: http://blog.wolfram.com/2012/10/05/automating-xkcd-diagrams-transforming- serious-to-funny/ I wonder if mpl has anything along these lines? https://github.com/matplotlib/matplotlib/pull/1329 -- Damon McDougall http

Re: [Matplotlib-users] But report: Date axis formatter problem

2012-10-08 Thread Damon McDougall
I put it on github: https://github.com/matplotlib/matplotlib/issues/1343 -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Damon McDougall
and saving to a png file without any problems, but I'm using the current git master branch. I'll try to see if I can recreate on 1.1.1rc2. Watch this space. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Damon McDougall
On Tue, Oct 9, 2012 at 10:56 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Oct 9, 2012 at 10:32 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, For some reason, my matplotlib isn't able to print percent signs ('%') properly: [1] inspiron:~/tmp# cat mplbug.py import

Re: [Matplotlib-users] data grid problem

2012-10-11 Thread Damon McDougall
, 25) -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Don't let slow site performance ruin your business. Deploy New

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
us some effort rolling out fixes for 1.2. Cheers. Damon -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom -- Don't let slow

Re: [Matplotlib-users] Format date tick labels

2012-10-11 Thread Damon McDougall
-slow-down-performance-by-10x when encountered with deltas very close to zero... -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] data grid problem

2012-10-11 Thread Damon McDougall
On Thu, Oct 11, 2012 at 1:52 PM, Benjamin Root ben.r...@ou.edu wrote: On Thursday, October 11, 2012, Damon McDougall wrote: On Wed, Oct 10, 2012 at 3:55 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Oct 10, 2012 at 9:40 AM, rand0m ran...@0x06.net wrote: Hello, I'm new

Re: [Matplotlib-users] dpi

2012-10-11 Thread Damon McDougall
a rasterised image embedded in a figure with vector text and tickmarks and labels, for example. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
On Thursday, October 11, 2012, Gökhan Sever wrote: On Thu, Oct 11, 2012 at 3:49 AM, Damon McDougall damon.mcdoug...@gmail.com javascript:_e({}, 'cvml', 'damon.mcdoug...@gmail.com'); wrote: Gökhan, did you implement the symlink fix? If so, would you mind making a pull request out

Re: [Matplotlib-users] Pylab import error due to dateutil

2012-10-11 Thread Damon McDougall
On Thu, Oct 11, 2012 at 9:25 PM, Gökhan Sever gokhanse...@gmail.com wrote: I am not sure about that technical detail, but it works fine here on my Fedora 16 (x86_64) system. On Thu, Oct 11, 2012 at 11:04 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Thursday, October 11, 2012

  1   2   >