[Matplotlib-users] EuroScipy 2015: Extended deadline (15/05/2015)

2015-05-01 Thread Nicolas P. Rougier
Extended deadline: 15th May 2015 EuroScipy 2015, the annual conference on Python in science will take place in Cambridge, UK on 26-30 August 2015. The conference features two days of tutorials followed by two days of scientific talk

[Matplotlib-users] EuroScipy 2015 : Call for talks, posters and tutorials [Reminder]

2015-04-17 Thread Nicolas P. Rougier
[Apology for cross-posting] Dear all, EuroScipy 2015, the annual conference on Python in science will take place in Cambridge, UK on 26-30 August 2015. The conference features two days of tutorials followed by two days of scientific talks & posters and an extra day dedicated to developer spri

[Matplotlib-users] EuroScipy 2015: Call for talks, posters & tutorials

2015-03-24 Thread Nicolas P. Rougier
Dear all, EuroScipy 2015, the annual conference on Python in science will take place in Cambridge, UK on 26-30 August 2015. The conference features two days of tutorials followed by two days of scientific talks & posters and an extra day dedicated to developer sprints. It is the major event in

Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Nicolas P. Rougier
, -200.0), (200.0, -300.0), (600.0, -400.0), (1000.0, -600.0) which corresponds to [P0, P0+P1, P1+P2, P2+P3] but you want [P0, P0+P1, P0+P2, P0+P3] Nicolas > On 05 Mar 2015, at 00:35, Jason Moore wrote: > > Actually the notation I have is valid SVG path data. Your script could be >

Re: [Matplotlib-users] Are matplotlib paths equivalent to svg paths?

2015-03-04 Thread Nicolas P. Rougier
Here is a (limited) SVG path parser I made some time ago: https://github.com/rougier/LinuxMag-HS-2014/blob/master/matplotlib/firefox.py The svg_parse function might just do what you're trying to achieve. Nicolas > On 04 Mar 2015, at 20:51, Jason Moore wrote: > > Hi, > &

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib and Numfocus Fiscal Sponsorship Agreement (FSA)

2015-01-21 Thread Nicolas P. Rougier
+1. Great news. Nicolas. > On 21 Jan 2015, at 20:22, Chris Barker wrote: > > +1 -- sounds great! > > > > On Tue, Jan 20, 2015 at 7:48 AM, Michael Droettboom wrote: > Matplotlib > is a widely used, well regarded, and powerful visualization >

Re: [Matplotlib-users] Diplaying 2D images in mplot3d

2014-10-01 Thread Nicolas P. Rougier
You might want to have a look at vispy.org, we implemented the wx backend and there are several examples available. (and the new glumpy home is http://glumpy.github.io) vispy examples at http://vispy.org/gallery.html Nicolas On 01 Oct 2014, at 20:27, Fabrice C. wrote: > Dear

[Matplotlib-users] Ten Simple Rules for Better Figures (update)

2014-09-27 Thread Nicolas P . Rougier
Now in Nature as well: http://www.nature.com/news/how-to-dodge-the-pitfalls-of-bad-illustrations-1.15999 Nicolas > > Hi all, > > I'm very pleased to announce the publication of a paper I've written with > Michael Droettboom and Philip E. Bourne. > > Ten

[Matplotlib-users] Ten Simple Rules for Better Figures

2014-09-11 Thread Nicolas P. Rougier
Hi all, I'm very pleased to announce the publication of a paper I've written with Michael Droettboom and Philip E. Bourne. Ten Simple Rules for Better Figures Nicolas P. Rougier, Michael Droettboom, Philip E. Bourne PLOS Computational Biology URL: http://www.ploscompbiol.org/articl

Re: [Matplotlib-users] Tutorial on perceptual colormaps

2014-08-06 Thread Nicolas P. Rougier
Really great material (ipython notebook and videos), thanks a lot to you all. Are the slides available somewhere by any chance ? Nicolas On 06 Aug 2014, at 15:25, Damon McDougall wrote: > On Mon, Aug 4, 2014 at 5:20 PM, Matteo Niccoli wrote: >> Hi All >> >> I recentl

Re: [Matplotlib-users] creating colors for many plots

2014-05-08 Thread Nicolas Rougier
.0) print plt.get_cmap('gray')(1.0) (1.0, 1.0, 1.0, 1.0) print plt.get_cmap('gray')(np.linspace(0,1,6)) [[ 0. 0. 0. 1. ] [ 0.2 0.2 0.2 1. ] [ 0.4 0.4 0.4 1. ] [ 0.6 0.6 0.6 1. ] [ 0.8 0.8 0.8 1. ] [ 1. 1. 1. 1. ]] Nicolas On 08 May 2014, at 11:41, Ma

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Nicolas Rougier
If you do not draw at all (no pcolor call), do you still get transparent colors ? If yes, what is your .matplotlibrc ? Nicolas On 24 Mar 2014, at 11:49, Jesper Larsen wrote: > Thanks Pierre, > > from __future__ import division did not help me, I am using mpl 1.1.1rc. I &

Re: [Matplotlib-users] 1. twinx and grid (garyr)

2014-02-09 Thread Nicolas Fauchereau
(111) > t = np.arange(0.01, 10.0, 0.01) > s1 = np.exp(t) > ax1.plot(t, s1, 'b-') > ax2 = ax1.twinx() > s2 = np.sin(2*np.pi*t) > ax2.plot(t, s2, 'r') > plt.grid() > plt.show() > > -- Dr. Nicolas Fauchereau Climate Scientist – National Cl

Re: [Matplotlib-users] pyplot.plot plotting points in wrong order making loops in the graph display

2014-01-09 Thread Guillermo-Nicolas Guénon Díaz
Hello, Can you provide a short piece of code that shows the issue? Do you provide your points in order and in a collection-like object that preserves the order in which the points are appended? (a Dict or Set would not preserve the ordering). Regards 2014/1/9 Francisco Vargas > Dear all > py

[Matplotlib-users] Problem building Matplotlib 1.3.1 on linux (CentOS 5.9 AMD64)

2013-12-10 Thread Guillermo-Nicolas Guénon Díaz
cc44 (which is the same compiler I used to build python3.3 and matplotlib). But the problem persists... My question is: *how can I know wich library is causing the issue, so I could recompile it?* Or, if I am completely missing the root cause, thank you for steering me in the correct direction :-

Re: [Matplotlib-users] Choosing optimal figure width/height automatically

2013-10-17 Thread Nicolas Rougier
white") hpixel = 1.0/(width+2*border) vpixel = 1.0/(height+2*border) ax = fig.add_axes([border*hpixel, border*vpixel, 1-2*border*hpixel, 1-2*border*vpixel]) ax.set_xlim(0, width) ax.set_ylim(0, height) plt.show() Nicolas On Oct 17, 2013, at 4:16 PM, Christoph Groth wrote:

Re: [Matplotlib-users] Graph ticks label missing !

2013-08-27 Thread Nicolas Mailhot
Le Lun 26 août 2013 18:21, Goyo a écrit : > 2013/7/19 Nicolas Mailhot : >> Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : >>> Can you please provide a completely standalone example? The following >>> code has undefined variables etc. >> >> Here

Re: [Matplotlib-users] Graph ticks label missing !

2013-08-26 Thread Nicolas Mailhot
Le Ven 19 juillet 2013 17:47, Nicolas Mailhot a écrit : > Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : Hi, >> Can you please provide a completely standalone example? The following >> code has undefined variables etc. > > Here it is, I'm afraid this tes

Re: [Matplotlib-users] Graph ticks label missing !

2013-07-19 Thread Nicolas Mailhot
precomputed values) As shown in the attached png, the bottom tick labels (month names) are missing. It worked in matplotlib ≤ 1.2.0 -- Nicolas Mailhot testcase.py Description: Binary data <>-- See everything from t

Re: [Matplotlib-users] [Patch] Patch for fontmanager crash

2013-07-19 Thread Nicolas Mailhot
Le Jeu 18 juillet 2013 14:12, Nicolas Mailhot a écrit : > Le Mer 17 juillet 2013 15:04, Michael Droettboom a écrit : >> This patch doesn't make a whole lot of sense to me. get_name should >> work just fine if self._family is None, and indeed it does in my own >>

Re: [Matplotlib-users] [Patch] Patch for fontmanager crash

2013-07-18 Thread Nicolas Mailhot
|@@libdir@@|%{_libdir}|' setupext.py # Use fontconfig by default %patch2 -p1 -b .fontconfig Regards, -- Nicolas Mailhot python-matplotlib-fontconfig.patch Description: Binary data python-matplotlib-noagg.patch Description: Binary data python-matplotlib-tk.patch Description: Binary da

Re: [Matplotlib-users] [Patch] Patch for fontmanager crash

2013-07-09 Thread Nicolas Mailhot
Le Mar 9 juillet 2013 15:14, Nicolas Mailhot a écrit : > > Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit : >> Could you instead just test for "if not self._family"? Tests for >> equality >> are more expensive (that means self._family == 0 or self._famil

Re: [Matplotlib-users] [Patch] Patch for fontmanager crash

2013-07-09 Thread Nicolas Mailhot
Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit : > Nicolas Mailhot wrote: >> Hi, >> >> In matplotlib 1.2.1, the get_name function is not garding against none >> self (unlike other functions); Unfortunately it seems I have a workload >> that makes matplotli

[Matplotlib-users] [Patch] Patch for fontmanager crash

2013-07-08 Thread Nicolas Mailhot
properties. """ +if self._family is None: + return rcParams['font.family'] return ft2font.FT2Font(str(findfont(self))).family_name def get_style(self): Regards, -- Nicolas Mailhot --

[Matplotlib-users] Graph ticks label missing !

2013-07-08 Thread Nicolas Mailhot
bottom=True, labeltop=False) line to the end of the block, but it seems matplotlib is confusing subplot1 and subplot2, and that results in the displaying of week numbers (not month numbers) to the bottom of the plot (and the week numbers disappear from the top of the graph). Any idea how to re

Re: [Matplotlib-users] contourf() for "proper plotting purpose"

2013-05-22 Thread Nicolas Rougier
You can use the 'origin' keyword: pl.controuf(Matrix, origin='lower') or pl.controuf(Matrix, origin='upper') Nicolas On May 23, 2013, at 7:27 AM, Bakhtiyor Zokhidov wrote: > Hi, > > I have following code: > > import numpy as np > imp

Re: [Matplotlib-users] matplotlib pnpoly-example-results-in-error

2013-05-10 Thread Nicolas Rougier
len(vertices)): if( ((vy[i] > y) != (vy[j] > y)) and (x < (vx[j]-vx[i]) * (y-vy[i]) / (vy[j]-vy[i]) + vx[i]) ): c = 1-c j = i return c Of course this would be slower than the corresponding C implementation. Nicolas On May 9, 2013, at 21:55 , algotr8der wrote

Re: [Matplotlib-users] How to start when you don't know what to do

2013-01-15 Thread Nicolas Rougier
necessary (cartesian, log, polar, ...) Some examples at: http://www.loria.fr/~rougier/coding/gallery/ Some really nice graphics (but difficult) to try to copy at: http://www.improving-visualisation.org/visuals Nicolas On Jan 15, 2013, at 20:52 , Steven Boada wrote: > Heyya list. > &g

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

2012-08-11 Thread Nicolas Rougier
Fantastic ! This is very valuable teaching material. Really great job and big thanks to all the ipython developers. Matthias, hope to see you at Euroscipy (and see some ipython demos). In fact, I've also some questions around ipython/webgl for you... Nicolas On Aug 11, 2012, at

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

2012-08-11 Thread Nicolas Rougier
Thanks Fernando ! By the way, I suspect the simple plot part may well suited for the ipython notebook ! I'll give it a try. Nicolas On Aug 11, 2012, at 4:55 , Fernando Perez wrote: > On Fri, Aug 10, 2012 at 5:23 AM, Nicolas Rougier > wrote: >> >> I've just

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

2012-08-10 Thread Nicolas Rougier
Not at all of course. Glad this might be of some help for matplolib. Nicolas On Aug 10, 2012, at 16:03 , Michael Droettboom wrote: > Very nice. I'm thinking of some ideas to revamp the > documentation/website, and one thing I would like to do is to link to > some of

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

2012-08-10 Thread Nicolas Rougier
Thanks, just forgot about the license. It will be the same as the scipy lecture notes which is a Creative Commons Attribution 3.0 United States License (CC-by) http://creativecommons.org/licenses/by/3.0/us Would that be ok or is a BSD one more suited ? Nicolas On Aug 10, 2012, at 15:10

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

2012-08-10 Thread Nicolas Rougier
Thank you all, I will try to correct that. I developed it in full screen mode and did not paid attention to the layout. Nicolas On Aug 10, 2012, at 15:33 , Fabrice Silva wrote: > Le vendredi 10 août 2012 à 14:19 +0100, Damon McDougall a écrit : >> On Fri, Aug 10, 2012 at 09:10:1

[Matplotlib-users] New tutorial (beginner level)

2012-08-10 Thread Nicolas Rougier
.html) Sources are available from: https://github.com/rougier/scipy-lecture-notes/tree/euroscipy-2012 If you've any comments or see errors... Nicolas -- Live Security Virtual Conference Exclusive live event will cov

Re: [Matplotlib-users] need an icon for a new featureH

2012-07-18 Thread Nicolas Rougier
What size/format do you need and would that be an option to transform/use Tango icons ? http://tango.freedesktop.org/ http://commons.wikimedia.org/wiki/Tango_icons Tango (for fullscreen but might suit tight-layout) <> <> <> <> <> Nicolas On Jul 19,

Re: [Matplotlib-users] Additional line styles - comparison excel chart

2012-07-16 Thread Nicolas Rougier
Here is a quick example that might help you: http://www.loria.fr/~rougier/coding/gallery/showcase/showcase-10-large.png http://www.loria.fr/~rougier/coding/gallery/showcase/showcase-10.py Nicolas On Jul 16, 2012, at 11:27 , Daπid wrote: > On Mon, Jul 16, 2012 at 11:09 AM, Benjamin Jo

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Nicolas Rougier
Your files do not seem to be readable: http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed.py http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed.pdf Nicolas On Jul 4, 2012, at 19:17 , Gökhan Sever wrote: > Hello, > > I am working on creating some distribution plots t

Re: [Matplotlib-users] tornado chart

2012-06-25 Thread Nicolas Rougier
I did it once and posted it to the list but never found the time to add it to the official gallery (my bad): http://www.loria.fr/~rougier/coding/gallery/showcase/showcase-3-large.png http://www.loria.fr/~rougier/coding/gallery/ Nicolas On Jun 23, 2012, at 5:36 , Benjamin Root wrote

Re: [Matplotlib-users] problem with streamplot method in basemap-1.0.3(4)

2012-06-21 Thread Nicolas
#x27;s Topics: > >   1. problem with streamplot method in basemap-1.0.3(4) (Nicolas) >   2. Re: problem with streamplot method in     basemap-1.0.3(4) >      (Benjamin Root) >   3. Re: problem with streamplot method in     basemap-1.0.3(4) (Nicolas) >   4. Re: problem with streamplot meth

Re: [Matplotlib-users] problem with streamplot method in basemap-1.0.3(4)

2012-06-20 Thread Nicolas
feedbacks cheers Nico On 21 June 2012 11:37, Benjamin Root wrote: > > > On Wednesday, June 20, 2012, Nicolas wrote: >> >> Hi all >> >> I have installed successively basemap 1.0.3 and 1.0.4 on top of my EPD >> 7.3 (linux x86_64) running on a linux ubuntu

[Matplotlib-users] problem with streamplot method in basemap-1.0.3(4)

2012-06-20 Thread Nicolas
----- Dr. Nicolas Fauchereau Climate Scientist – National Climate Centre National Institute of Water and Atmospheric Research (NIWA) Ltd. 41 Market Place Viaduct Precinct, Auckland NEW ZEALAND Tel: +64 (0)9 375 2053 --

Re: [Matplotlib-users] histogram and a line

2012-03-08 Thread Nicolas Rougier
axes.set_ylim(0, 1) axes.set_xlim(-3, 3) axes.spines['right'].set_color('none') axes.spines['top'].set_color('none') axes.xaxis.set_ticks_position('bottom') axes.spines['bottom'].set_position(('data', -0.05)) axes.yaxis.set_ticks_posit

Re: [Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Nicolas Rougier
e Vector Charts Statistical Charts Maybe we can find/agree on similar structure(s)/sub-structure(s) and adapt it to the current gallery ? Nicolas On Feb 23, 2012, at 16:59 , Jerzy Karczmarczuk wrote: > Nicolas Rougier : >> I've seen the discussion around the re-organization of the

[Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Nicolas Rougier
oving examples in the right subdirectory). http://www.loria.fr/~rougier/coding/gallery/ https://github.com/rougier/gallery Nicolas -- Virtualization & Cloud Management Using Capacity Planning Cloud computing mak

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-20 Thread Nicolas Le Bihan
-e857412 ) : pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev It automatically installs scipy in /Users/nicolas/src and link it to /usr/local/Cellar/ 5 - Matplotlib install (dev as well 1.2.x): sudo make -f make.osx PREFIX=/Users/nicolas/src PYVERSION=2.7 fetch deps

Re: [Matplotlib-users] Hardware rendering with tricontourf

2012-01-29 Thread Nicolas Rougier
basic) matplotlib script example to check if this is actually the case. Nicolas On Jan 27, 2012, at 23:12 , Benjamin Root wrote: > On Fri, Jan 27, 2012 at 10:06 AM, Howard wrote: > On 1/27/12 3:39 AM, Ian Thomas wrote: >> >> On 26 January 2012 19:36, Howard wrote: >&

Re: [Matplotlib-users] data free margin

2011-11-22 Thread Nicolas Rougier
(np.linspace(0,10,11), ['']*3 + ['%d' % i for i in linspace(3,10,8)]) plt.show() Nicolas On Nov 22, 2011, at 20:13 , C M wrote: > What's the best way in Matplotlib to have a y axis that doesn't have > ticks/axis numbers near the bottom of the graph? I don&#

Re: [Matplotlib-users] [ANN] glumpy 0.2.0

2011-09-18 Thread Nicolas Rougier
future OpenGL backend to be integrated into matplotlib. Nicolas On Sep 18, 2011, at 14:00 , Stef Mientki wrote: > hi Nicolas, > > looks very interesting. > > I was considering to move from MatPlotLib to guiqwt, > because of it's easy interactive plots. > But I se

[Matplotlib-users] [ANN] glumpy 0.2.0

2011-09-17 Thread Nicolas Rougier
use matplotlib but if you want to have a sense of what’s going on in your simulation while it is running, then maybe glumpy can help you. Download and screenshots at: http://code.google.com/p/glumpy/ Nicolas-- BlackBerry

[Matplotlib-users] [ANN] glumpy 0.2.0

2011-09-17 Thread Nicolas Rougier
use matplotlib but if you want to have a sense of what’s going on in your simulation while it is running, then maybe glumpy can help you. Download and screenshots at: http://code.google.com/p/glumpy/ Nicolas-- BlackBerry

[Matplotlib-users] Bug in xscale? Or wrong way to plot log x-axis scale with negative values?

2011-06-03 Thread Nicolas Bigaouette
ing the x value). I might not be using the right tool though, but how to achieve what I want? I want the x axis to look like: -10^2-10^1-10^0 -10^-1-10^-2-10^-3 ... [up to my defined minimum exponent] ... 10^-310^-210^-110^010^1 10^2 Thank you Nicol

Re: [Matplotlib-users] 3d Surface-Contour Plot

2011-03-28 Thread Nicolas Bigaouette
On Mon, Mar 14, 2011 at 9:05 AM, herbie13 wrote: > > Hello, > > I basically have a Chi-Squared distribution that is dependent on 3 > variables. > eg. X2(x, y, z) > > What I would like to do is be able to plot the chi-squared + 1 surface in > 3-dimensions. > eg. I would like to have the three axes

Re: [Matplotlib-users] Help in solving a segfault problem?

2011-03-19 Thread Nicolas SCHEFFER
p;xm, &ym); I have no idea how to debug this since it seems the problem are in the CXX extensions (calls to ceval.c) Any idea how I can narrow down the problem? Thanks! On Sun, Mar 13, 2011 at 6:18 PM, Nicolas SCHEFFER wrote: > Thanks much for the reply! > I'll try your advice

Re: [Matplotlib-users] Help in solving a segfault problem?

2011-03-13 Thread Nicolas SCHEFFER
at 1:03 PM, Jouni K. Seppänen wrote: > Nicolas SCHEFFER writes: > >> I didn't get much reply on this issue, so I'm just trying to resurrect >> the question. > > Probably not many devs using Solaris, so no-one has been able to > reproduce this. > >>>

Re: [Matplotlib-users] Help in solving a segfault problem?

2011-03-13 Thread Nicolas SCHEFFER
Hi, I didn't get much reply on this issue, so I'm just trying to resurrect the question. If there's no easy answer, could someone help me by giving me a pointer, a method to resolve the problem, or any other quick advice...? Thanks much! On Thu, Mar 10, 2011 at 12:29 AM, Nicolas

[Matplotlib-users] Help in solving a segfault problem?

2011-03-10 Thread Nicolas SCHEFFER
Hi all, I am stuck on matplotlib generating a segfault when invoking 'plot'. I've ben trying to solve this problem for a while now but no luck. I've seen many duplicates of this problem on the web, some with solutions, some without. The solution must be something more generic that I'm missing. Her

[Matplotlib-users] Slider: can valmax be updated?

2011-02-15 Thread Nicolas Bigaouette
Hi all, I'm using a matplotlib.widgets.Slider on my animated figure. Sometime, I want to refresh the maximum value of the slider (since new values to plot were generated). Is it possible to update the "valmax" value of the slider? If not, is it possible to delete the slider and create a new one?

[Matplotlib-users] MinorLogTickFormatter and is_decade()

2011-01-28 Thread Nicolas Bigaouette
complains about the is_decade() function: isDecade = self.is_decade(exponent) AttributeError: MinorLogTickFormatter instance has no attribute 'is_decade' How can I fix that? Thanks! Nicolas -- Special Offer--

[Matplotlib-users] Bug in NonUniformImage?

2010-12-13 Thread Nicolas Bigaouette
Hi all, I'm using matplotlib.image.NonUniformImage() to plot a 2D rectilinear grid (non uniform spacing between points): > im = matplotlib.image.NonUniformImage(grid, extent=extent, origin='lower', > cmap = matplotlib.cm.jet, interpolation = "nearest") im.set_data(x, y, z) ax.images.append(im)

Re: [Matplotlib-users] Taylor diagram (mdekauwe)

2010-12-09 Thread Nicolas
/Taylor_diagram/index.html) and follow the complete description of the program code hope that helps Nicolas > Message: 6 > Date: Thu, 9 Dec 2010 14:42:41 -0800 (PST) > From: mdekauwe > Subject: [Matplotlib-users]  Taylor diagram > To: matplotlib-users@lists.sourceforge.net > Messa

Re: [Matplotlib-users] [mplot3d] remove background

2010-11-28 Thread Nicolas Pinto
Thanks for the quick reply Ben. Let me know how I can help. Regards, N On Sun, Nov 28, 2010 at 6:54 PM, Benjamin Root wrote: > On Sunday, November 28, 2010, Nicolas Pinto wrote: >> Dear all, >> >> I'm trying to get rid of the mplot3d background (in vain, see be

[Matplotlib-users] [mplot3d] remove background

2010-11-28 Thread Nicolas Pinto
Dear all, I'm trying to get rid of the mplot3d background (in vain, see below), how can I do this? Thanks for your help. Best, Nicolas demo: from mpl_toolkits.mplot3d import axes3d, axis3d import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = axes3d.Axes3D(fig)

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Nicolas Bigaouette
Why not just use latex? plt.text(0.05, 0.95, r"This is the square marker: $\Box$ Subscript: $_\Box$ superscript: $^\Box$", fontsize=20) -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the la

[Matplotlib-users] How to get axes from a user click?

2010-11-16 Thread Nicolas Bigaouette
Hi all, I have defined some shortcuts I often use using pylab.ginput(). I normally do: > fig = pylab.figure() fig.canvas.mpl_connect('key_press_event', on_key) with my "on_key" function being (simplified): > def on_key(event): if (event.key == 'q'): sys.exit(0) elif (event.k

Re: [Matplotlib-users] automatically choose different line markers

2010-11-08 Thread Nicolas Bigaouette
> > How can I automatically cycle through distinctive line markers? >> >> I want a semilog plot, composed of a number of lines. Each line should >> have >> a different color and marker. > > I simply use: colors = ['b', 'r', 'c', 'm', 'k', 'g', 'y'] symbols = ['-', '--', '-.', ':'] nc = len(colors

Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
Thanks. Unfortunately wx and tk backends are broken on my machine (but they may be easier to fix). I will file a bug report for the native backend bug. Nicolas On Oct 4, 2010, at 22:27 , Friedrich Romstedt wrote: > 2010/10/4 Nicolas Rougier : >> I'm trying to have animat

[Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
File "/Volumes/Data/Local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 105, in new_gc self.gc.save() RuntimeError: CGContextRef is NULL Is there something wrong in my script (it seems to be working on linux) ? Information: matplotlib version: 1.

Re: [Matplotlib-users] imshow() and a transparent colormap?

2010-10-02 Thread Nicolas Bigaouette
On Fri, Oct 1, 2010 at 5:38 PM, Stan West wrote: > *From:* Nicolas Bigaouette [mailto:nbigaoue...@gmail.com] > *Sent:* Thursday, September 30, 2010 18:00 > > What I would like to do it have a colormap which is transparent for lower > values of data and opaque for high values, so

[Matplotlib-users] Vectorization

2010-07-02 Thread Nicolas Bigaouette
Hi all, I don't really know where to ask, so here it is. I was able to vectorize the normalization calculation in quantum mechanics: . Basically it's a volume integral of a scalar field. Using: > norm = 0.0 > for i in numpy.arange(len(dx)-1): > for j in numpy.arange(len(dy)-1): > for

[Matplotlib-users] Qt4Agg backend and SIGINT (ctrl+c)

2010-02-23 Thread Nicolas Bigaouette
Hi, I cannot kill a plot by "ctrl+c" in a terminal (sending the SIGINT) when using the Qt4Agg backend. When using GTKAgg it works fine... What could be wrong? I need that. Thanx! -- Download Intel® Parallel Studio Eval T

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-12-12 Thread Nicolas Bigaouette
Wonderful! Thanx a lot ;) 2009/12/11 > Reinier, > > This in incredible. Wow. Thanks for all of your hard work. > > Cheers, > -paul > > > -Original Message- > > From: Reinier Heeres [mailto:rein...@heeres.eu] > > Sent: Thursday, December 10, 2009 3:37 PM > > To: Matthias Michler > > Cc: m

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-10-09 Thread Nicolas Bigaouette
Thanx all, Can it be used to do a projection not only on the xoy axis but also on the xoz and yoz? N 2009/10/9 Andrew Straw > Matthias Michler wrote: > > Hello list, > > > > I'm not an expert in axes3d, but in case the feature which Nicolas > requested > > i

Re: [Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread Nicolas Bigaouette
I was looking for something similar. It seems Axes3D() takes the angle as argument: import matplotlib.pyplot as plt import mpl_toolkits.mplot3d as m3d fig = plt.figure() ax = m3d.Axes3D(fig, elev = 20.0, azim = 45) in degrees. 2009/10/2 German Ocampo > Hello > > After search in google, I found

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-28 Thread Nicolas Bigaouette
I'm not sure its possible right now to do subplots with 3D. As for the title, I cannot either put titles on any 3D graphs... 2009/9/28 > Greetings, > > I would like to plot to make a figure with 3 subplots > of the form (221) to (223): > - each subplot should show a bar3d plot of a matrix >

Re: [Matplotlib-users] [Numpy-discussion] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-28 Thread Nicolas Rougier
on is whether people are interested in glumpy to have a quick & dirty "debug" tool on top of matplotlib or whether they prefer a full fledged and fast pyglet/OpenGL backend (which is really harder). Nicolas On 28 Sep, 2009, at 18:05 , Gökhan Sever wrote: On Mon, Sep

[Matplotlib-users] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-28 Thread Nicolas Rougier
runs at around 500 fps using glumpy instead of 30 fps on my machine. Package/screenshots/explanations at: http://www.loria.fr/~rougier/coding/glumpy.html (it does not require installation so you can run demos from within the glumpy directory). Nicolas

Re: [Matplotlib-users] mplot3d bars3d demo

2009-09-16 Thread Nicolas Bigaouette
I have reported that issue on the tracker at the end of July. You can fin dit here: http://sourceforge.net/tracker/?func=detail&atid=560720&aid=2830483&group_id=80706 It's supposed to be fixed in 0.99... are you sure you are using it? I remember trying it just after the bug was closed with an svn

Re: [Matplotlib-users] making quicktime animations from linux -- summary

2009-09-05 Thread Nicolas Bigaouette
Thats good information to have gathered! It sure will be usefull. Have you look into the new html5's video tag? You can directly embed ogg in a page, without flash or any other plugin. Firefox 3.5 supports that, I think Safari would work too. See this page for information (and look up the source) h

Re: [Matplotlib-users] funny bug with greek letters

2009-09-05 Thread Nicolas Chopin
thanks a lot! I did not know about raw strings, sorry, even Python has its black corners, I guess. funny \gamma works, though. On a related note, usetex=True is fancy, but produce much bigger eps files for me, so I stick with the standard mathtex rendering. Thanks again Nicolas 2009/9/4 Nicolas

[Matplotlib-users] funny bug with greek letters

2009-09-04 Thread Nicolas Chopin
g came out. Thanks in advance -- ________ Nicolas Chopin ENSAE 3, Avenue Pierre Larousse 92245 Malakoff CEDEX FRANCE tel +33 1 41 17 65 22 | fax +33 1 41 17 38 52 http://www.crest.fr/pageperso/Nicolas.Chopin/Nicolas.Chopin.htm

Re: [Matplotlib-users] making quicktime animations from linux

2009-09-03 Thread Nicolas Bigaouette
I produce all my movies in Ogg container + Theora compression. I use ffmpeg2theora for that, available on all platforms:ffmpeg2theora --nosound --optimize --width 1024 --height 768 --inputfps=15 --aspect 4:3 png/mov%04d.png -o movie.ogv 2009/9/3 Andrew Straw > I use:: > > ffmpeg -r 60 -i frame%

Re: [Matplotlib-users] Fwd: best format for MS word?

2009-09-03 Thread Nicolas Bigaouette
I'm sure everybody find this really sad... If he wants control over the ploting capabilities, then why not have matplotlib and send him the script?I know when I switched to matplotlib from matlab I wanted to be able to edit directly the graph with point and click, but sometimes it is more powerful

Re: [Matplotlib-users] how to update plots fast

2009-09-02 Thread Nicolas Bigaouette
Have you read these? http://www.scipy.org/Cookbook/Matplotlib/Animations http://matplotlib.sourceforge.net/examples/animation/index.html?highlight=animation What I normally do is plot everything (forget about interactive mode, its just too slow) and get handles to curves, then update the curves va

Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Nicolas Bigaouette
Its great news that the 3D is receiving more polish :) After reading on wikipedia, wouldn't it be nicier to have Phong reflection[1] instead of Gouraud? Maybe it would be too hard, as the Gouraud seems to be implemented directly in Agg (from what others just said...) Anyway, just a suggestion ;)

Re: [Matplotlib-users] FYI, typo

2009-08-21 Thread Nicolas Pinto
scover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Nicolas Pinto Ph.D. Ca

[Matplotlib-users] Using spines and set_yscale

2009-08-04 Thread Nicolas Pinto
, x, align='center') ax.spines["left"].set_position(("outward", 10)) ax.set_yscale('log') ax = fig.add_subplot(224) ax.set_yscale('log') ax.bar(range(len(x)), x, align='center') ax.spines["left"].set_position(("outward&quo

Re: [Matplotlib-users] How to get ticks "out" using mpl_toolkits.axes_grid.axislines ?

2009-07-23 Thread Nicolas Pinto
> > I'll try to improve this in the future. > > On the other hand, you may take a look at the recently added "spine" > support in the main matplotlib. > > > http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html > > If you use

[Matplotlib-users] How to get ticks "out" using mpl_toolkits.axes_grid.axislines ?

2009-07-23 Thread Nicolas Pinto
, 1) fig.add_subplot(ax) # make xzero axis (horizontal axis line through y=0) visible. ax.axis["xzero"].set_visible(True) ax.axis["xzero"].label.set_text("Axis Zero") # make other axis (bottom, top, right) invisible. for n in ["bottom", "top", &quo

[Matplotlib-users] Basemap installation on Ubuntu 9.04 (Jaunty Jackalope)

2009-07-23 Thread Nicolas
stall "old" .deb (python-basemap_0.99-0ads1_i386.deb) complains about python 2.6 do I have to redo all the installation (numpy etc) using an older python (2.5) ? thanks for any advice -- _/\/¯¯\/\_ 33º49'45.24"S & 18º28'45.60"E Dr. Nicolas Fauchereau Senior

[Matplotlib-users] Basemap installation on Ubuntu 9.04 (Jaunty

2009-07-23 Thread Nicolas
-- _/\/¯¯\/\_ 33º49'45.24"S & 18º28'45.60"E Dr. Nicolas Fauchereau Senior Researcher CSIR - NRE Research Group: Ocean systems and climate 15 Lower Hope street, Rosebank 7700 South Africa _/\/¯¯\/\_ 33º49

[Matplotlib-users] 3D Bar (histogram) question

2009-07-07 Thread Nicolas Bigaouette
Hi, I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. >From mpl's website, an example for 3D bar plotting is shown[1]. I just don't understand the axes. From the code, shouldn't X values go from 0 to 20, instead of 0 to 400 000 like shown on the graph? Where does these values

[Matplotlib-users] Vertical and horizontal lines width

2009-06-03 Thread Nicolas Pourcelot
atplotlib releases (at least, not on 0.91.2). Sorry if this is a known bug, or even an already corrected one, but I couldn't find any mention of it on Sourceforge last changelog, nor elsewhere. Nicolas -- OpenSola

Re: [Matplotlib-users] computer modern

2009-05-29 Thread Nicolas Pourcelot
as well, or even cursive and monospace ? I don't know how to do that, since Stix seems to contain all of them in a single file (STIXGeneral.ttf) ? Nicolas Michael Droettboom a écrit : > The name of the Computer Modern Roman font that ships with matplotlib > is "cmr10", so &g

Re: [Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Nicolas Pourcelot
w changes based > on the size of the underlying text is less straightforward and will > take some time to implement. This is what I meant, yes. Hope you will success, I miss it quite a lot for now. Thanks again, Nicolas > Cheers, > Mike > > Index:

[Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Nicolas Pourcelot
Hi, is there any way to display a big arrow on a vector using mathtext, like "$\overrightarrow{AB}$" ? If not, is there any plan to implement it in a next release ? Thanks a lot, Nicolas P. -- Regist

[Matplotlib-users] computer modern

2009-05-28 Thread Nicolas Pourcelot
also in plain text, but I can't figure it... I tried : /mpl.rc('font', family = 'serif', serif = 'computer modern roman')/ but it did not work. Thanks a lot, Nicolas P. -- Register Now

[Matplotlib-users] fill_between a plot with gradient

2009-01-14 Thread Vergnes Nicolas
ood way to do ? How to have a gradient from 0 to the y ? Or how to have a gradient from 0 to max(y) ? Thank you, Nicolas Vergnes ... -- This SF.net email is sponsored by: SourcForge

Re: [Matplotlib-users] Simple 3D support

2008-11-28 Thread Nicolas Rougier
(macpython and python from darwin ports) and the egg did not compile at all. I tried today the last EPD on a fresh leopard install and it seems to be working now. Nicolas On Fri, 2008-11-28 at 05:14 -0800, Lou Pecora wrote: > This looks interesting. What platform are you using? How hard was

[Matplotlib-users] Simple 3D support

2008-11-27 Thread Nicolas Rougier
lable at http://www.loria.fr/~rougier/scigl/screenshots.html . Nicolas - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK &

[Matplotlib-users] Problem with loglog and ls='steps'

2008-08-25 Thread Nicolas Champavert
1] pylab.loglog(x,y) #it works pylab.loglog(x,y,ls='steps') #nothing is drawn... pylab.plot(x,y,ls='steps') #it works Is there something I can do to use loglog with ls='steps'? thanks in advance, Nicolas ---

  1   2   >