Hello,
I've just updated matplotlib to 1.0 svn version from 0.93.
My pyqt4 app use the pick event. Cliking on a point in the graph
triggers an event but with matplotlib 1.0 it does not anymore while
it was working fine with 0.93.
Any idea/help on where I should look for ?
Thanks in advance,
Hi Everyone,
I don't like the default scientific formatting in matplotlib, IMHO the
format of having a zero after the exponent is a waste of space in my opinion
...
What I mean is that mpl is writing zero as:
0.0e+00 or 1.2e-03. IMHO it would suffice just to do 0.0 and 1.2e-3, which
take less
On Wed, Sep 22, 2010 at 8:31 PM, C M cmpyt...@gmail.com wrote:
Until a more permanent solution is figured out, can anyone recommend
any workarounds, even if they are a little clunky? I'm embedding mpl
plots in wxPython and am also finding this issue suboptimal.
Change your subplots adjust
Hi David,
I'm using the pick event in wx (matplotlib 1.0) without any issues. Could
you please post some sample code? Have you tried to see if
legend.draggable() works? If so, the pick event is likely not an issue.
-Aman
On Thu, Sep 23, 2010 at 4:20 AM, David Trémouilles
Hi Ryan,
Thanks for your answer. However, I don't understand from the existing
documentation how to use tickers.
In the past I used the following method:
class SciFormatter(Formatter):
def __call__(self, x, pos=None):
return %1.1e % x
axs.yaxis.set_major_formatter(SciFormatter())
OK, was able to narrow thinks down:
actually it looks like
figure.canvas.mpl_connect('pick_event', function)
does not connect the function if it is a class method (...?)
In attachment you will find two files illustrating this:
buggy_pick.py and buggy_pick2.py
Both work nicely with matplotlib 0.93
Hi Every, Hi Ryan
I finally solved this issue, which bothered me very long.
I managed to make a nicer scientific formatting on the xticks !
from pylab import *
import numpy as N
from matplotlib.ticker import Formatter,FuncFormatter
import os
#class to produce scientific format numbering
class
On Thu, Sep 23, 2010 at 8:52 AM, Oz Nahum nahu...@gmail.com wrote:
Hi Ryan,
Thanks for your answer. However, I don't understand from the existing
documentation how to use tickers.
In the past I used the following method:
class SciFormatter(Formatter):
def __call__(self, x, pos=None):
Justin Park wrote:
Hello,
I am using Mac 10.5.8.
I have been trying to install Matplotlib, and succeeded to do so.
How did you install it?
What python are you using?
-Chris
But when I try to import matplotlib.pyplot, I got the following error:
import matplotlib.pyplot
Traceback
On Thu, Sep 23, 2010 at 9:16 AM, David Trémouilles david.t...@gmail.com wrote:
OK, was able to narrow thinks down:
actually it looks like
figure.canvas.mpl_connect('pick_event', function)
does not connect the function if it is a class method (...?)
In attachment you will find two files
Wonderful !
This does indeed solve my issue.
Many many thanks,
David
Le 23/09/10 17:35, Ryan May a écrit :
On Thu, Sep 23, 2010 at 9:16 AM, David Trémouillesdavid.t...@gmail.com
wrote:
OK, was able to narrow thinks down:
actually it looks like
figure.canvas.mpl_connect('pick_event',
On 9/22/10 2:55 PM, Lütteke Felix wrote:
Hello,
is there a possibility to order several 3dplots, if all are plotted
in the same figure. If I execute the code below, the higher values
(blue) are covered by the lower (yellow) ones, which seems quite
unlogical to me (see attached image). Any
On Wed, Sep 15, 2010 at 3:03 AM, David Trémouilles david.t...@gmail.com
mailto:david.t...@gmail.com wrote:
Hello,
Does anybody know if matplotlib work with pyside ?
If it does how to use matplotib with pyside ?
Thanks,
David
David,
I am not familiar with
Hi Ryan,
Thanks again,
Well your solution is also working.
I get very similar results with
class NiceSciFormatter(Formatter):
def __call__(self, x, pos=None):
a=%1.1E % x
a=a[:5]+a[-1]
return a
It seems though that your solution enables more fine tuning !
Cheers,
From: Jeremy Lewi [mailto:jl...@intellisis.com]
Sent: Friday, September 17, 2010 17:38
Is there a way to get the size of the bounding box for the axes which includes
the axes labels and tick marks? It looks like Axes.get_position/set_position
refers to the inner position (i.e the actual plot
Hi Everyone,
Not really related to my every day work, but I was asking myself how to put
non latin letters, like arabic or hebrew on plots.
I found a way to put german umlauts and ß but this is only a very partial
solution. It would be cool to know how to over come this.
My code to work with
You may need to use a font with a more complete character set, such as
DejaVu.
Mike
On 09/23/2010 02:56 PM, Oz Nahum wrote:
Hi Everyone,
Not really related to my every day work, but I was asking myself how
to put non latin letters, like arabic or hebrew on plots.
I found a way to put
I should also add that matplotlib doesn't have any advanced text layout
algorithms (such as what would be found in Pango), so Hebrew and Arabic
are likely to be backwards and wrong.
Mike
On 09/23/2010 03:07 PM, Michael Droettboom wrote:
You may need to use a font with a more complete
Well, I had my bib program open, so here are a couple formats:?xml version=1.0 encoding=UTF-8?
xml
records
recorddatabase name=Everything.bib path=/Users/chlewis/Documents/svn/chlewis/Everything.bibEverything.bib/databasesource-app name=BibDesk
On Thu, Sep 23, 2010 at 2:33 PM, Chloe Lewis chle...@berkeley.edu wrote:
Well, I had my bib program open, so here are a couple formats:
Thanks for posting these. I added this to the FAQ:
http://matplotlib.sourceforge.net/faq/howto_faq.html#cite-matplotlib
JDH
many thanks. very useful info.
Carlos
On Thu, Sep 23, 2010 at 17:03, John Hunter jdh2...@gmail.com wrote:
On Thu, Sep 23, 2010 at 2:33 PM, Chloe Lewis chle...@berkeley.edu wrote:
Well, I had my bib program open, so here are a couple formats:
Thanks for posting these. I added this to the
Can someone give some hints to change the style of plot produced with
matplotlib to be similar to plots produced with ROOT? Example here:
http://precision-turra.mi.infn.it/ph_oq/graphs/eta_energy_position_amount/reta_mean/ph_oq/
22 matches
Mail list logo