Re: [Matplotlib-users] segfault on OSX

2011-05-07 Thread Ondrej Certik
On Sat, May 7, 2011 at 3:34 PM, Ondrej Certik wrote: > Hi, > > I am using Matplotlib 1.0 precisely from this branch: > > https://github.com/matplotlib/matplotlib/tree/v1.0.x > > everything works on Linux, and on Mac, I am getting a segfault when I > do "impo

[Matplotlib-users] segfault on OSX

2011-05-07 Thread Ondrej Certik
Hi, I am using Matplotlib 1.0 precisely from this branch: https://github.com/matplotlib/matplotlib/tree/v1.0.x everything works on Linux, and on Mac, I am getting a segfault when I do "import pylab". Stacktrace is here: https://gist.github.com/960896 I produced it by: gdb python (gdb) run >>>

[Matplotlib-users] pcolor() to VTK

2009-07-08 Thread Ondrej Certik
Hi, I just wanted to share a simple code that I wrote: http://certik.github.com/visit_writer/ which uses Visit's VTK writer (written in C, wrapped in Python). I wrote a pcolor() function, that works just like the one in matplotlib, only it produces a vtk file (resp. data that you then pass to th

Re: [Matplotlib-users] calling show() twice in a row

2009-07-07 Thread Ondrej Certik
gt; for j in arange(len(t)): >    # reset x/y-data of point >    setp(point[0], data=(x[j], y[j])) >    draw() # redraw current figure > > ioff() # turn off interactive mode > show() > > > On Monday 06 July 2009 08:13:37 Ondrej Certik wrote: >> On

Re: [Matplotlib-users] calling show() twice in a row

2009-07-05 Thread Ondrej Certik
On Tue, Jun 30, 2009 at 12:09 PM, Ondrej Certik wrote: > Hi, > > this must have been answered many times already, but I searched the > archives, online docs, but couldn't find anything. > > If I do: > > $ python > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18

[Matplotlib-users] calling show() twice in a row

2009-06-30 Thread Ondrej Certik
Hi, this must have been answered many times already, but I searched the archives, online docs, but couldn't find anything. If I do: $ python Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> impo

Re: [Matplotlib-users] plot a triangular mesh

2009-05-25 Thread Ondrej Certik
On Mon, May 25, 2009 at 1:03 AM, Robert Cimrman wrote: > Ondrej Certik wrote: >> >> On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik wrote: >>> >>> Thanks a lot John. I tried that and it does what I want. I just need >>> to convert and probably average m

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread Ondrej Certik
> Ok, I made a progress, it seems it's working. Script and picture Forgot to attach the script. Ondrej from hermes2d import Mesh, H1Shapeset, PrecalcShapeset, H1Space, \ WeakForm, Solution, ScalarView, LinSystem, DummySolver, Linearizer from hermes2d.forms import set_forms from hermes2d.ex

Re: [Matplotlib-users] plot a triangular mesh

2009-05-22 Thread Ondrej Certik
On Fri, May 22, 2009 at 7:06 AM, John Hunter wrote: > On Thu, May 21, 2009 at 9:31 PM, Ondrej Certik wrote: >> Hi, >> >> I have a set of vertices in 2D as triples (x, y, val), where the x, y >> are 2D coordinates and "val" is the scalar value of the finite el

Re: [Matplotlib-users] two scales in the same plot

2009-04-29 Thread Ondrej Certik
On Fri, Apr 24, 2009 at 1:10 PM, Sandro Tosi wrote: > Hi Ondrej, > nice to see you here :) Nice to see you too! :) > > On Fri, Apr 24, 2009 at 22:02, Ondrej Certik wrote: >> Hi, >> >> is there a way to have one plot with two functions, one using some >> sc

[Matplotlib-users] two scales in the same plot

2009-04-24 Thread Ondrej Certik
Hi, is there a way to have one plot with two functions, one using some scale, the other one a different scale and show for example one scale on the left, the other scale on the right? I want to plot an atomic potential (one scale) and the corresponding wave functions (different scale) in the same

Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence

2008-12-19 Thread Ondrej Certik
On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi wrote: > Hello Ondrej, > > On Fri, Dec 19, 2008 at 18:18, Ondrej Certik wrote: >> we got this Debian bug: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148 > ... >> I tested that this applies to 0.98.3.

[Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence

2008-12-19 Thread Ondrej Certik
Hi, we got this Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148 Citing: " the following python code creates a histogram with an x-axis range of 0.1 min to 0.3 max (based on the mins and maxes of the x rather than bin). the bins should be used to size the axis since the user

Re: [Matplotlib-users] latest debian package

2008-10-08 Thread Ondrej Certik
On Wed, Oct 8, 2008 at 6:46 PM, Angus McMorland <[EMAIL PROTECTED]> wrote: > Hi all, > > This is just a head's-up for those using debian and who upgrade > regularly. There's a problem with the latest debian package to hit > testing: 0.98.1-1, which is currently unusable, throwing up the error: > >

Re: [Matplotlib-users] ./make.py html fails

2008-06-10 Thread Ondrej Certik
On Tue, Jun 10, 2008 at 3:35 AM, Ryan May <[EMAIL PROTECTED]> wrote: > John Hunter wrote: >> >> I posted a snapshot of the docs at: >> >> http://matplotlib.sourceforge.net/doc/html/index.html >> > > WOW. I love the way sphinx docs look. But more importantly, great work > you guys on improving t

Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 5:41 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 10:23 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > >> In the meantime, I am trying to package numpy 1.1 for Debian, but when >> I installed it and did "import n

Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 5:08 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > >> My system wide matplotlib is 0.91.2-2. I tried to install the one from >> svn, but it requires numpy 1.1, which

[Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
Hi, I did: $ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib $ cd matplotlib/doc $ ./make.py html making figs building pyplot_formatstr.py building dollar_ticks.py building pyplot_text.py building pyplot_two_subplots.py building fig_x.py