Thomas Caswell tcaswell@... writes:
Jorge,I have put in a PR to fix this issue. Can you confirm that it is
equivalent to your fix? For aesthetic reasons I chose to pass guiEvent as a
kwarg to all of the event related functions.
https://github.com/matplotlib/matplotlib/pull/4130
Tom
Hi,
A recent commit against lib/matplotlib/backends/backend_qt5.py [1] causes
some errors in code that was working fine before. The error is as follows:
---
TypeError Traceback (most recent
Hi,
I just mentioned this problem with Qt4Agg and python 3.4 in another thread
[1], but I decided to post it on a thread of its own, as I suspect it might
be a bug in the Qt4Agg backend.
I get a NameError exception (see backtrace below) when trying to use key
events in matplotlib (master branch
Werner wernerfbd@... writes:
...
Some time ago I did a bit of work on the wx backend to work with
wxPython Phoenix.
https://github.com/matplotlib/matplotlib/pull/2803
I haven't had time to look at the last few comments made on that PR.
Just the other day someone contacted me off list
Jorge Scandaliaris jorgesmbox-ml@... writes:
Hi,
I just mentioned this problem with Qt4Agg and python 3.4 in another thread
[1], but I decided to post it on a thread of its own, as I suspect it might
be a bug in the Qt4Agg backend.
I get a NameError exception (see backtrace below) when
Jorge Scandaliaris jorgesmbox-ml@... writes:
Hi,
I just mentioned this problem with Qt4Agg and python 3.4 in another thread
[1], but I decided to post it on a thread of its own, as I suspect it might
be a bug in the Qt4Agg backend.
I get a NameError exception (see backtrace below) when
Hi,
After a while away from matplotlib I am back working on some old code. I
decided to switch to python 3 (bad idea?) and I am having problems with
backends. I used to use GTKAgg, it worked ok, but it doesn't seem to work
with python 3?
1- What are my choices running python 3 and matplotlib from
Hi,
Are there any caveats when using events together with IPython that you
are aware of? I have some code that I use to interactively explore
images that works OK when run from a Python interpreter but does not
(see note) when run from IPython. With --pylab option the problems are
more evident,
De: Tony Yu tsy...@gmail.com
Just a wild guess: Any chance you're using some GUI-toolkit-specific
functionality?
Can you elaborate please? I use the GTKAgg backend, and I guess IPython has
specific mechanisms (I don't know the details) for keeping both the plot and
the interpreter
Benjamin Root ben.root@... writes:
snip
Essentially, you make a Path object using the vertices, and then use its
contains_point() method.
Ben Root
OK, but given that contains_point works with a *single* point at a time, I have
to call it for all my points which is a bit more cumbersome,
Hi,
I've had an import error with some of my code, specifically with nxutils (I need
it for using points_inside_poly).
In [1]: import matplotlib.nxutils as nx
---
ImportError Traceback (most
Hi, I updated mpl to trunk today and I received the followin error when trying
to build the documentation:
$ python2 make.py html
Running Sphinx v1.1.2
Extension error:
Could not import extension matplotlib.sphinxext.mathmpl (exception:
libpng14.so.14: cannot open shared object file: No such
Benjamin Root ben.root@... writes:
Strange. Could you include the entire sphinx output as well as any logs that
the build produced?Ben Root
Well, all the output available was what I posted. I don't see any log file in
the build directory. I added the -P option to sphinx-build, the output
Benjamin Root ben.root@... writes:
You might need to do a complete rebuild of your mpl trunk. I would guess
that
you originally built mpl when you had the older version of libpng. When you
updated the library, that wouldn't trigger a relink of _png.so whenever you
rebuilt the trunk.
Benjamin Root ben.root@... writes:
Which backend and platform are you using?Ben Root
I run Arch Linux x86_64 and I am using the GTKAgg backend. I tried both with
IPython and python directly (2.7.2).
jorges
--
John Hunter jdh2358@... writes:
I am not seeing this on Linux x86_64 with backend GTKAgg version
2.22.0 on python 2.7. Eg, if I run:
python simple_plot.py -dgtkagg
and then hover over the axes window (w/o clicking on it but the window
has the focus on hover) and press 'g') the
Hi,
I am experiencing something a bit strange with 'key_press_event': The event is
not detected unless I click with the mouse on the canvas (The grey area around
the axis). I verified this with my own code as well as with some unmodified
example (
Hi,
Are events supposed to be used in non-interactive mode? I've been having some
weird issues recently (see
http://thread.gmane.org/gmane.comp.python.matplotlib.general/26233/focus=26267)
which, just by chance, I pinned down to having matplotlib.interactive(True) in
my custom ipython's pylab
Benjamin Root ben.root@... writes:
Jorges,
iPython can do some special things with matplotlib's interactivity when
invoked in certain ways (hence why it was called interactive python). I
don't know the particulars of what ipython does, but this does not surprise
me. Does everything
Jorge Scandaliaris jorgesmbox-ml@... writes:
snip
I couldn't come up with a simple example showing the problem. My attempts so
far
ended in working examples. I did find a change in my code that triggers the
problem: My code uses a modified version of the lasso_demo example, contains
two
Jorge Scandaliaris jorgesmbox-ml@... writes:
snip
So, I modified the lasso_demo, increasing progressively the number polygons
drawn. When I reached 10 polygons, I was able to reproduce the problem.
It's
true that this a rather large number, but in my code it happens well below
2011/2/8 Benjamin Root ben.r...@ou.edu
Hmm, interesting observation. There is very little in mpl that limits your
ability to produce elements for plotting (which is probably why you were
getting shrugs from the mailing list...). However, ipython has various
tricks for caching mpl
Jorge Scandaliaris jorgesmbox-ml@... writes:
snip
The symptoms are that
the interaction (keys and mouse clicks) works OK as long as I don't resize the
window. Once I do this, the interaction is gone. What happens when the window
is
resized, that could be related to what I experience
Hi,
I have some code that's been working for a long time, but it's behaving strange
with current (svn) matplotlib. It's too large to post here, so I will try to
come up with a minimal version reproducing the problem. Meanwhile, I wanted to
ask if anyone would have a clue of what could be going on.
Eric Firing efir...@... writes:
For this to work, you need to be in matplotlib's interactive mode,
either by running ipython with the -pylab option, or by calling
plt.ion() before your call to show(). In either of these cases, your
example code works for me with ipython from git, mpl from
Hi,
Today I tried to run some code in my new notebook, but I only got blank figures
and high CPU usage as a result. This code did run on my previous laptop. I can
reproduce this behavior with the following code at the bottom of this message.
The backtrace (also at the bottom this message) points
Eric Firing efir...@... writes:
Running mpl from svn, with gtkagg backend, on ubuntu, but with ipython
0.11alpha1, I can't reproduce the problem; your example works for me. I
suspect the difference is that ipython 0.11 uses a non-threaded
interactive mode, while 0.10 uses the threaded
Eric Firing efir...@... writes:
Running mpl from svn, with gtkagg backend, on ubuntu, but with ipython
0.11alpha1, I can't reproduce the problem; your example works for me. I
suspect the difference is that ipython 0.11 uses a non-threaded
interactive mode, while 0.10 uses the threaded
Jae-Joon Lee lee.j.j...@... writes:
snip
In recent versions, there is a separate parameter : scatterpoints. So
check your document.
ax.legend(sc, labels, scatterpoints=1)
Regards,
-JJ
Great! It works fine with 1.0.0
Jorge
Hi,
Looking for a way to analyze a set of images I found waitforbuttonpress, which
basically does what I need: allows me to display a few plots/scatter/etc for as
long as I need; then when pressing a key move to the next image and redo all
plots/scatter/etc.
Now my problem is that
Benjamin Root ben.r...@... writes:
snip
Probably not directly, but I hadn't thought about that before. For a set of
scatter points that are colored by values, what should the legend show? In
other words, what does it *mean* for there to be a legend for points that are
colored in a
Jorge Scandaliaris jorgesmbox...@... writes:
Hi,
I am adding several scatter plots to the same axis, each having a specific
color. When I call legend on the axis it correctly picks all scatter plots
with
their symbols and labels, but it doesn't pick up the color. The example below
Benjamin Root ben.r...@... writes:
snip
Hmm, this definitely looks like a bug. If I explicitly state what color I
want
using the color keyword instead of using 'c' and 'norm', then everything
works properly.
I can't tell if this is a bug or not, but the trick of using a color directly is
Benjamin Root ben.r...@... writes:
snip
Hmm, this definitely looks like a bug.
Should I fill a bug report about this?
Jorge
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to
Benjamin Root ben.r...@... writes:
snip
Yes, please do, and then mention which bug report you filed to this thread.
Ben Root
Done. Bug number is 3039678
Could this behavior be due to the fact that scatter() accepts sequences for
setting the color of each point individually? Maybe I am way
Hi,
I am working with collection of lines, and when trying to set the color of each
individual lines I found that you can either use a 'color' or colors' (note the
's') argument to LineCollection() to accomplish the same, but that there's only
a set_color() method you can call. Is this intended?
Hi,
I am re-using a scatter plot in the same figure for interactively displaying
results without ending up with 30 windows open. The legend is relevant, and so
it must be also updated. So far the only way I found was to use the set_label()
method and then using plt.legend(). Is this the only way
El 11/02/10 18:28, Jae-Joon Lee escribió:
You're already using ax.legend, what kind of OO way do you want?
Instead of calling plt.legend, you may do
ax.legend([s],[str(i)])
Thanks Jae-Joon. You're right. I tried this before, but I must have done
something wrong then, because when I
Jae-Joon Lee lee.j.j...@... writes:
...
It depends on your mileage.
However, a patch in matplotlib usually means a closed path. If you add
additional lines, you need to be careful not to mess the filling of
the rectangle.
I guess it would better to simply use separate artists for
Hi,
I just had to label a sequence of images with the position and scale of a moving
object. To do this I took the nice example from
http://matplotlib.sourceforge.net/users/event_handling.html (the one using
blitting) and extended to be resizeable. The extension is trivial, but it might
be useful
Hi,
How difficult would be to extend the Rectangle class so besides its permimeter
it draws lines showing halfs or thirds of the width and height? I use rectangle
to mark the locations of moving objects in sequences of images, and such lines
would make the job easier.
Thanks,
Jorge
Michael Droettboom md...@... writes:
It shouldn't always return True -- it should return a tuple of type
(bool, dict). The first element is whether it's inside, and the second
is a dictionary of indices of subobjects (used only for Collections).
Unfortunately, this tuple always
Hi,
I have a strong preference to working with the keyboard instead of the mouse.
Today I was working on a script to label a sequence of images (mark position and
scale of a moving object). The default keyboard shortcuts are getting in my way,
many keys are already used and moreover they are
Hi,
I was trying to find out when a button_press_event happened inside a patch
(tried Circle and Rectangle) using the contains(mouseevent) method, but it
always seem to return True. I got the inspiration from the looking_glass.py
example, which also doesn't work as (Ithink) it should. I know Ican
Hi,
I think I found a bug, but I am not sure if it's in the doc or in a method name.
In the doc, there is reference to a method *suptitle* in class
mpl.figure.Figure. The name sounds strange, but the method exists and works. The
example given, though, makes reference to *subtitle*, so either the
Hi,
I am trying to use matplotlib to visually explore certain different
representation of images. I have the core functionality done. This allows to
explore one image that appears on two subplots w/ the possibility to highlight
regions on either subplot and see the corresponding one on the other.
Jorge Scandaliaris jorgesmbox...@... writes:
jorgesmbox...@... writes:
Hi,
I have a strange problem. It seems to me it is related to
mpl.axes.Axes.add_collection(), but I am too lost to be sure.
Well, I haven't solved this problem yet, but it seems that the
add_collection
Alan G Isaac alan.is...@... writes:
snip
That's all, as long as you don't mind destroying
the Window manually. (Otherwise, you need just
a couple more lines.)
Thanks, I'll give this a try.
Jorge
--
OpenSolaris
48 matches
Mail list logo