[Matplotlib-users] Avoid circular references with format_coord and Qt?

2015-03-08 Thread Sebastian Berg
Hey, probably there is nothing to help me here, but I have a QtGui, using matplotlib and basically end up in a circular reference hell that is not resolvable by the gc. After removing almost all circular references, the python inherited QWidget that embeds the figurecanvas is now deleted fine. Th

Re: [Matplotlib-users] Defaults?

2014-11-07 Thread Sebastian Berg
On Fr, 2014-11-07 at 16:15 +0100, Sebastian Berg wrote: > Hey, > > just something I was wondering about today. I commonly want to change > certain things about my plots. For example I like a serif/larger fonts, > and everyone knows that "jet" is an awful default c

[Matplotlib-users] Defaults?

2014-11-07 Thread Sebastian Berg
Hey, just something I was wondering about today. I commonly want to change certain things about my plots. For example I like a serif/larger fonts, and everyone knows that "jet" is an awful default colour map almost always... It could be neat to have some more "default" rc's or so that can be load

[Matplotlib-users] Figure save hack

2012-03-15 Thread Sebastian Berg
does not work inside a 3D Axis, though I think its likely not difficult to change), I thought I would put it online because I am not aware of any way to save matplotlib figures: https://github.com/seberg/haunter-for-matplotlib-figures Maybe someone finds it useful or interesting :) Regards, Seba

Re: [Matplotlib-users] 1d plot of a discontinuous function

2011-09-30 Thread Sebastian Berg
Hey, On Fri, 2011-09-30 at 17:31 +0400, Александров Петр wrote: > How to make a plot of a discontinuous 1d function without line at a > function jump. An example is shown on a picture. This was plotted by: > import numpy > from matplotlib import pyplot > x = numpy.linspace(-1.0, 1.0, 100) > y = nu

Re: [Matplotlib-users] working with ticklabels text in matplolib

2011-08-26 Thread Sebastian Berg
Hi, On Fri, 2011-08-26 at 06:09 -0700, a.sam wrote: > I have a problem with changing the ticklabels text. In fact I am aware of the > method which is explained by the matplotlib help center. But I need more > flexibility with ticklabels text. You could set the formatter yourself instead of manipu

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Sebastian Berg
Hi, On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: > Hi all! > > following code shows the problem I have with placing a colorbar for several > subplots. > > #-code > import matplotlib > import numpy as np > import matplotlib.cm as cm > import matplotlib

Re: [Matplotlib-users] fill-between special demand

2011-06-10 Thread Sebastian Berg
On Fri, 2011-06-10 at 14:15 +0200, Johannes Radinger wrote: > Hello, > > I know that it is possible to fill an area between to curves (functions) with > "fill between". > > In my case I've got let's say 10 curves of different shape. I'd like to fill > the area between the most upper lines and t

Re: [Matplotlib-users] Date format the x-axis of a barh() plot?

2011-04-18 Thread Sebastian Berg
Hello, don't know the foo behind it, but using ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d %H:%M:%S')) works. Regards, Sebastian On Sun, 2011-04-17 at 19:52 -0700, jfortiv wrote: > Hello, > > I'm trying to create a bar chart that looks something like a gannt chart... > > See

Re: [Matplotlib-users] Pixel shape

2011-04-18 Thread Sebastian Berg
ost me the link of the guide of this setting? > Thanks! > > > Il 16/04/2011 10:47, Sebastian Berg ha scritto: > > Hello, > > > > check the help ;). you can set aspect='auto' or something fixed. > > > > Regards, > > > > Sebastian > > >

Re: [Matplotlib-users] Pixel shape

2011-04-16 Thread Sebastian Berg
Hello, check the help ;). you can set aspect='auto' or something fixed. Regards, Sebastian On Sat, 2011-04-16 at 10:43 +0200, Paolo Zaffino wrote: > Hi at all, > I have a numpy matrix (an image) and I'd like to show it. > I thought to use show function, but I have a question. > I don't want tha

Re: [Matplotlib-users] Errorbar stays behind data

2011-04-11 Thread Sebastian Berg
Hey, not sure about which values are good to use (there is an example in the gallery about it), but do the first plot command for example with zorder=1 keyword argument, and the errorbar with zorder=2, and voila you got what you want. Regards, Sebastian On Mon, 2011-04-11 at 14:49 +0200, Marti

Re: [Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
he "build" dir, and run "python > setup.py install &> log" and send us the file "log". It's possible you > do not have the development files for gtk installed so the extension > modules didn't get built. > > Mike > > On 04/

Re: [Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
Sorry, I mean of course, that the example already fails for me with this error... On Fri, 2011-04-08 at 14:49 +0200, Sebastian Berg wrote: > Hey, > > I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped > with ubuntu. I have the problem that the GTK

[Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
No module named _backend_gdk Is this a problem with the version or my installation and how would I fix it (or do I need to downgrade again!?). Regards Sebastian Berg -- Xperia(TM) PLAY It's a major breakthroug

[Matplotlib-users] clabel like labels for normal line plots

2011-03-12 Thread Sebastian Berg
Hey, I have a family of curves to plot. They all look somewhat similar and hardly cross, but a parameter is changed, so adding labels to them in a contour plot fashion would be cool. I will just do this by hand now likely, but as clabels works nice I was wondering if this can be used or abused for