Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Thomas Caswell
Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw...@gmail.com -- ___ Matplotlib-users mailing list

Re: [Matplotlib-users] pick_event after zooming/panning stops working.

2014-08-21 Thread Thomas Caswell
) to update the toolbar and make our tool handling saner. Tom -- Thomas Caswell tcasw...@gmail.com -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org

[Matplotlib-users] matplotlib v1.4.0 released

2014-08-26 Thread Thomas Caswell
We are pleased to announce the release of matplotlib 1.4.0! This release has contributions from ~170 authors (http://matplotlib.org/users/github_stats.html). This release contains many bug fixes as will as a number of new features. For the full list see

Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Thomas Caswell
. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw

Re: [Matplotlib-users] Basemap shiftgrid

2014-08-27 Thread Thomas Caswell
/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw...@gmail.com -- Slashdot TV. Video for Nerds

Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Thomas Caswell
related to this: are the Windows and Mac wheels going to be uploaded to PyPI so pip doesn't try to install/build from the source distribution by default? Christoph On 8/27/2014 5:33 AM, Thomas Caswell wrote: Is the hash it reports reproducible? My first guess at what is going on here

Re: [Matplotlib-users] violin plot

2014-08-28 Thread Thomas Caswell
We also welcome PRs! Adding that feature should be pretty straight forward. Iirc it should be a matter of adding an extra key to the dictionary and a conditional to draw the lines if those keys exist. Tom On Aug 27, 2014 4:57 PM, Arnaldo Russo arnaldoru...@gmail.com wrote: Hi Neal, I don't

Re: [Matplotlib-users] Error in atexit._run_exitfuncs

2014-09-15 Thread Thomas Caswell
-- Thomas Caswell tcasw...@gmail.com -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http

Re: [Matplotlib-users] Error in atexit._run_exitfuncs

2014-09-15 Thread Thomas Caswell
plt.matshow([[0.0]]) It crashes with the FigureManagerGTK3Cairo error. Keith -Original Message- From: Thomas Caswell [mailto:tcasw...@gmail.com] Sent: 15 September 2014 13:23 To: Briggs,KM,Keith,TUB2 R Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Error

Re: [Matplotlib-users] FW: traceback when import matplotlib.pyplot twice

2014-10-10 Thread Thomas Caswell
-users -- Thomas Caswell tcasw...@gmail.com -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS

Re: [Matplotlib-users] Quiver 3D ValueError

2014-10-10 Thread Thomas Caswell
3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] FW: traceback when import matplotlib.pyplot twice

2014-10-11 Thread Thomas Caswell
See https://github.com/matplotlib/matplotlib/pull/3638 That might help to make sure that things tear them selves down in the right order. Tom On Sat, Oct 11, 2014 at 10:12 AM, Phil Elson pelson@gmail.com wrote: On 10 October 2014 19:10, Thomas Caswell tcasw...@gmail.com wrote: I suspect

[Matplotlib-users] v1.4.1rc1

2014-10-14 Thread Thomas Caswell
- sundry unicode fixes (looking up user folders, importing seaborn/pandas/networkx with macosx backend - fixed boxplot regressions The tarball is available from github, sourceforge and can be install via pip install matplotlib==1.4.1rc1 Tom -- Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] [matplotlib-devel] v1.4.1rc1

2014-10-16 Thread Thomas Caswell
Awesome, thanks! On Thu, Oct 16, 2014 at 8:14 AM, Sandro Tosi mo...@debian.org wrote: Hi! I just uploaded mpl 1.4.1-rc1 in Debian, so it can geta bit of exposure even on the weird HW we still support. Cheers, Sandro On Tue, Oct 14, 2014 at 5:40 PM, Thomas Caswell tcasw...@gmail.com wrote

Re: [Matplotlib-users] Matplotlib import fail

2014-10-16 Thread Thomas Caswell
:\Python27\lib\ntpath.py, line 310, in expanduser return userhome + path[i:] UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 16: ordinal not in range(128) -- Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] _backend_gdk.c:43:10: error: ‘PyArrayObject’ has no member named ‘strides’

2014-10-17 Thread Thomas Caswell
. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] _backend_gdk.c:43:10: error: ‘PyArrayObject’ has no member named ‘strides’

2014-10-17 Thread Thomas Caswell
: Thomas A Caswell tcasw...@gmail.com Date: Fri Oct 17 10:45:39 2014 -0400 on opensuse12.3 On Fri, Oct 17, 2014 at 7:14 PM, Thomas Caswell tcasw...@gmail.com wrote: What OS and what branch are you using? Can you roll back to one commit before the most recent merge? https://github.com

[Matplotlib-users] matplotlib v1.4.1 released

2014-10-18 Thread Thomas Caswell
Hello, We are pleased to announce the release of matplotlib 1.4.1. This is a bug-fix release for the 1.4 series. - reverts the changes to interactive plotting so ion will work as before in all cases fixed boxplot regressions - fixes for finding freetype and libpng - sundry unicode fixes

[Matplotlib-users] matplotlib v1.4.2

2014-10-25 Thread Thomas Caswell
Hot on the tails of v1.4.1, we have a v1.4.2 due to an error in the boxplot api in pyplot.py The only changes between 1.4.1 and 1.4.2 are: - corrected boxplot in pyplot.py - added extra paths to default search paths for freetype Tom -- Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] Equivalent of d3's step-after interpolation?

2014-10-30 Thread Thomas Caswell
-- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Thomas Caswell tcasw...@gmail.com

[Matplotlib-users] Fwd: tex rendering broken?

2014-11-03 Thread Thomas Caswell
Forwarding message to list that should have gone there initialy for archiving. -- Forwarded message -- From: Thomas Caswell tcasw...@gmail.com Date: Mon, Nov 3, 2014 at 7:50 AM Subject: Re: [Matplotlib-users] tex rendering broken? To: Martin Wiebusch mwiebusc...@gmail.com My

[Matplotlib-users] Fwd: tex rendering broken?

2014-11-03 Thread Thomas Caswell
Forwarding message to list that should have gone there initialy for archiving. -- Forwarded message -- From: Martin Wiebusch mwiebusc...@gmail.com Date: Mon, Nov 3, 2014 at 8:26 AM Subject: Re: [Matplotlib-users] tex rendering broken? To: Thomas Caswell tcasw...@gmail.com On Mon

Re: [Matplotlib-users] Defaults?

2014-11-07 Thread Thomas Caswell
The style module (extracted from mpltools) is now part of the library and was one of the major features added in the 1.4 series. See http://matplotlib.org/users/style_sheets.html Tom On Fri Nov 07 2014 at 11:05:58 AM Adam Hughes hughesada...@gmail.com wrote: I use a config file in ipython

Re: [Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread Thomas Caswell
The old-style classes are because mpl pre-dates new-style classes. On master all classes now inherit from object (as of about 3 weeks ago https://github.com/matplotlib/matplotlib/pull/3662) On Fri Nov 07 2014 at 2:02:15 PM Brendan Barnwell brenb...@brenbarn.net wrote: On 2014-11-07 09:37,

Re: [Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread Thomas Caswell
, the navigation stuff, the blit-manager object I want to pull in from scikit-image, etc). @Federico, tell me if I am being dumb about this. Tom On Fri Nov 07 2014 at 2:05:29 PM Thomas Caswell tcasw...@gmail.com wrote: The old-style classes are because mpl pre-dates new-style classes. On master all

Re: [Matplotlib-users] axes3d.get_test_data; where else is test data?

2014-11-07 Thread Thomas Caswell
Take a look at matplotlib.cbook.get_sample_data. That said, I don't think an _axes_ object should have such a function and axes3d.get_test_data() should be removed. Tom On Thu Nov 06 2014 at 11:40:18 AM Adam Hughes hughesada...@gmail.com wrote: Hi, I recently noticed the method:

Re: [Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread Thomas Caswell
If you want each marker to be a different color you have to use scatter. You can pass scatter a sequence of colors (see http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.scatter) so you don't have to go through making a custom colormap. Tom On Thu Nov 13 2014 at 9:01:42 AM V. Armando

Re: [Matplotlib-users] Control of the display of the navigation toolbar --- how?

2014-11-13 Thread Thomas Caswell
Also note that there is an rcparams context manager ( http://matplotlib.org/api/matplotlib_configuration_api.html#matplotlib.rc_context) that will take care of the boiler plate of temporarily changing an rcparam. On Wed Nov 12 2014 at 10:52:03 PM Sterling Smith smit...@fusion.gat.com wrote:

Re: [Matplotlib-users] Can not display 3D plot !

2014-11-18 Thread Thomas Caswell
Did you try in a conda venv? These look like (globally!) installed version of things which means your python session can still be picking up old/stale versions of other imports. See Paul Hobson's email. Tom On Thu Nov 13 2014 at 4:58:11 PM Geoffrey Mégardon geoffrey.megar...@gmail.com wrote:

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-20 Thread Thomas Caswell
There are also triangular mesh plotting (I think tricolormesh is the function name). The really brute force solution is to use poly collection and draw what ever shape you want. Tom -- Download BIRT iHub F-Type - The

Re: [Matplotlib-users] line segments in a scatter plot

2014-12-11 Thread Thomas Caswell
I would just call use `plot` and keep track of the Line2D objects returned. On Thu Dec 11 2014 at 10:40:05 AM Nils Wagner nils...@googlemail.com wrote: Hi Ben, I have attached a sample scatter plot. The task is to add lines to the scatter plot. Nils On Thu, Dec 11, 2014 at 3:47 PM,

Re: [Matplotlib-users] Is it planned to add copy/paste curves possibility in matplotlib ?

2014-12-11 Thread Thomas Caswell
glue does a lot of fancy interactive stuff, they might have something like that. From a reproducible computing PoV that functionality is a bit of a problem until we have a way to serialize figures. It is looking more and more like that is what I will be doing over the holidays Tom On Thu

Re: [Matplotlib-users] Include \hline on table inside figure

2015-01-23 Thread Thomas Caswell
Have you looked at using the mpl tables? http://matplotlib.org/examples/pylab_examples/table_demo.html Tom On Fri Jan 23 2015 at 1:15:09 PM Arnaldo Russo arnaldoru...@gmail.com wrote: Hi, I'm dealing with this issue but no clues I have found! When I use simple matplotlib engine, my plot does

Re: [Matplotlib-users] Marker Edge Width Bug

2015-02-04 Thread Thomas Caswell
This should be fixed in 1.4.3 (which currently has a release candidate out and barring calamities will be released this weekend). On Wed Feb 04 2015 at 9:44:54 AM Aston630 gael.grissonnanc...@gmail.com wrote: Hi, I recently updated Matplotlib from 1.3.1 to 1.4.2, and I observe now a bug that

Re: [Matplotlib-users] Do animations work in Notebook on Mac?

2015-02-02 Thread Thomas Caswell
The nbagg UAT has an animation example: https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/web_backend/nbagg_uat.ipynb that should work on 1.4.2. Tom On Mon Feb 02 2015 at 11:17:15 AM Benjamin Root ben.r...@ou.edu wrote: There have been many fixes to the nbagg backend

Re: [Matplotlib-users] Matplotlib backend nbagg does not show figure in iPython Notebook

2015-02-07 Thread Thomas Caswell
See https://github.com/ipython/ipython/issues/7351 and https://github.com/matplotlib/matplotlib/pull/4002 On Sat Feb 07 2015 at 4:15:26 PM Benjamin Root ben.r...@ou.edu wrote: Hmm, that should work. I notice that you are using the beta 3.0 ipython release. Perhaps something is broken in the

Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-07 Thread Thomas Caswell
of a hassle that would be for you. Tom On Sat Feb 07 2015 at 4:14:36 PM Sandro Tosi mo...@debian.org wrote: On Sat, Feb 7, 2015 at 9:05 PM, Thomas Caswell tcasw...@gmail.com wrote: Sandro, Can you use the tarball from github (https://github.com/matplotlib/matplotlib/archive/v1.4.3rc1.tar.gz

Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-07 Thread Thomas Caswell
Sandro, Can you use the tarball from github ( https://github.com/matplotlib/matplotlib/archive/v1.4.3rc1.tar.gz ?) Tom On Sat Feb 07 2015 at 4:01:01 PM Sandro Tosi mo...@debian.org wrote: Hi Thomas, On Mon, Feb 2, 2015 at 5:37 AM, Thomas Caswell tcasw...@gmail.com wrote: Evening all

Re: [Matplotlib-users] Matplotlib backend nbagg does not show figure in iPython Notebook

2015-02-07 Thread Thomas Caswell
Yes, I think that if you want to use ipython 3.0 you need to use mpl 1.4.3 or master. Tom On Sat Feb 07 2015 at 4:21:19 PM Benjamin Root ben.r...@ou.edu wrote: So, the user needs to use 1.4.3? On Sat, Feb 7, 2015 at 4:17 PM, Thomas Caswell tcasw...@gmail.com wrote: See https://github.com

Re: [Matplotlib-users] Fwd: Keep list of figures or plots and flip through list using UI

2015-02-18 Thread Thomas Caswell
...@gmail.com Date: Wed Feb 18 2015 at 12:25:10 PM Subject: Re: [Matplotlib-users] Keep list of figures or plots and flip through list using UI To: Thomas Caswell tcasw...@gmail.com Funny thing - shortly after I wrote you - I figured it out. I have a GUI/Dialog I created with designer that has

[Matplotlib-users] Fwd: Keep list of figures or plots and flip through list using UI

2015-02-18 Thread Thomas Caswell
:10 PM Subject: Re: [Matplotlib-users] Keep list of figures or plots and flip through list using UI To: Thomas Caswell tcasw...@gmail.com Funny thing - shortly after I wrote you - I figured it out. I have a GUI/Dialog I created with designer that has a push button which cycles between two plots I

Re: [Matplotlib-users] Event errors in qt5 backend after recent commit

2015-02-18 Thread Thomas Caswell
Can you put in a pull request with those changes please? On Wed, Feb 18, 2015, 17:03 Jorge Scandaliaris jorgesmbox...@yahoo.es wrote: 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:

[Matplotlib-users] matplotlib v1.4.3

2015-02-16 Thread Thomas Caswell
Hello all, We are pleased to announce the release of matplotlib v1.4.3! Wheels, windows binaries and the source tarball are available through both source-forge [1] and pypi (via pip). Additionally the source is available tarball is available from github [2] and mac-wheels from

Re: [Matplotlib-users] matplotlib finance

2015-01-30 Thread Thomas Caswell
Boris, Please direct such questions to the user list in the future (I have included the list on my reply). You may need to join the list to be able to post. The reason that mpl.finance was deprecated is that none of the current core developers work in finance and hence do not have the domain

[Matplotlib-users] v1.4.3rc1

2015-02-01 Thread Thomas Caswell
Evening all, I have tagged the first release candidate for v1.4.3 ( https://github.com/matplotlib/matplotlib/releases/tag/v1.4.3rc1). Although this is a bug-fix release, a fair amount of work has gone into making the nbagg (interactive figures in ipython notebooks) feature complete compared to

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Thomas Caswell
It should be exactly the same as for Qt4, just importing from the Qt5 version Tom On Wed Jan 28 2015 at 11:24:55 AM moon...@posteo.org wrote: I read the documentation a little bit. But I couldn't find a hint how to integrate a plot with matplotlib into a Qt5-Gui.

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Thomas Caswell
On Wed Jan 28 2015 at 2:39:16 PM moon...@posteo.org wrote: On 2015-01-28 16:25 Thomas Caswell tcasw...@gmail.com wrote: It should be exactly the same as for Qt4, just importing from the Qt5 version Sorry, but my question was to unspecific. I don't know how it worked with Qt4. I need

Re: [Matplotlib-users] [matplotlib-devel] v1.4.3rc1

2015-02-08 Thread Thomas Caswell
, but they seem to other be floating point errors, or issues with fonts. Ben Root On Sat, Feb 7, 2015 at 4:46 PM, Thomas Caswell tcasw...@gmail.com wrote: Sandro, Well, creating the tarball on GH is a lot easier for us as it happens automatically! I don't want to unilaterally change policy

Re: [Matplotlib-users] Bug in matplotlib 1.4.2

2015-02-09 Thread Thomas Caswell
Can you test with 1.4.3rc1? I believe this has been fixed. On Mon Feb 09 2015 at 1:07:28 PM Alex Böhnert alex.boehn...@gmail.com wrote: Dear all, when plotting scattered data with the , marker, the data points do not show up either on screen (Qt4Agg backend) or in saved bitmap images

Re: [Matplotlib-users] Keep list of figures or plots and flip through list using UI

2015-02-10 Thread Thomas Caswell
Sorry this didn't get a response for so long. The core of the embedding in Qt is at QWidget which contains the canvas. Anything you want to do with a QWidget you can do with the canvas. Independently you need to maintain the mpl level plotting objects (the Figure, Axes, and Artist objects) (well,

Re: [Matplotlib-users] quiverkey() doesn't plot the reference vector?

2015-02-18 Thread Thomas Caswell
This is probably related to the Agg renderer issue with edge-only markers. On Wed Feb 18 2015 at 7:14:22 PM Eric Firing efir...@hawaii.edu wrote: On 2015/02/18 2:00 PM, Thomas Caswell wrote: Is this just on master or with 1.4.x? It's on 1.4.1 and 1.4.2, but not on 1.4.3 or master or 1.4.0

Re: [Matplotlib-users] what are the new features of nbagg?

2015-02-18 Thread Thomas Caswell
Recent means IPython 2.4. For 3.0 %matplotlib notebook will also work. Tom On Wed Feb 18 2015 at 7:25:41 PM Eric Firing efir...@hawaii.edu wrote: On 2015/02/18 6:44 AM, Emilia Petrisor wrote: Hi all, I looked for a link where I could find out what’s new in |matplotlib 1.4.3|, but

Re: [Matplotlib-users] what are the new features of nbagg?

2015-02-18 Thread Thomas Caswell
Interesting, I was going off what the IPython devs said here https://github.com/ipython/ipython/issues/7774 On Wed Feb 18 2015 at 7:48:32 PM Eric Firing efir...@hawaii.edu wrote: On 2015/02/18 2:31 PM, Thomas Caswell wrote: Recent means IPython 2.4. Did you mean 2.2? It works on 2.3

Re: [Matplotlib-users] quiverkey() doesn't plot the reference vector?

2015-02-18 Thread Thomas Caswell
Is this just on master or with 1.4.x? On Wed Feb 18 2015 at 6:00:26 PM Eric Firing efir...@hawaii.edu wrote: On 2015/02/18 9:52 AM, njs wrote: Hi All, I'm having issues with quiver, and quiverkey() although, I have never experienced these issues in the past. I attached an image to this

Re: [Matplotlib-users] Event errors in qt5 backend after recent commit

2015-02-18 Thread Thomas Caswell
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 On Wed Feb 18 2015 at 5:32:04 PM Thomas

Re: [Matplotlib-users] [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

2015-03-18 Thread Thomas Caswell
We do support ubuntu, travis.ci (which we use for continuous integration testing) is ubuntu based and my main development box is ubuntu (but I mostly work inside conda environments rather than virtualenvs these days). Even though it is the worst thing for a dev to say, 'it works on my machine'.

Re: [Matplotlib-users] [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

2015-03-18 Thread Thomas Caswell
to drag Debian into this, because all I know is that I was having issues on Ubuntu. Ben Root On Wed, Mar 18, 2015 at 1:51 PM, Thomas Caswell tcasw...@gmail.com wrote: We do support ubuntu, travis.ci (which we use for continuous integration testing) is ubuntu based and my main development box

Re: [Matplotlib-users] Best way to display image from URL in Python3

2015-03-20 Thread Thomas Caswell
I think `six` (which we use to smooth over the 2/3 changes) has a way of dealing with atleast the urllib renaming . On Fri, Mar 20, 2015 at 11:58 AM Ryan Nelson rnelsonc...@gmail.com wrote: For me, if I change the script from the PR to what is shown below, everything works fine in both Python

Re: [Matplotlib-users] Best way to display image from URL in Python3

2015-03-20 Thread Thomas Caswell
Despite my grumping earlier, a PR that makes URLs just work is probably a good idea and would be merged. Tom On Fri, Mar 20, 2015 at 3:59 PM Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr wrote: Le 20/03/2015 16:57, Ryan Nelson a écrit : For me, if I change the script from the PR to what

Re: [Matplotlib-users] Draggable is not working on multiple legends of plots which are generated with twinx()

2015-03-11 Thread Thomas Caswell
and on the right, it seems I have to have two axes, are there any workarounds? thanks! On Wed, Mar 11, 2015 at 2:22 PM, Thomas Caswell tcasw...@gmail.com wrote: The mouse events only propagate to the top axes. You will have to add both legends to the same (top) axes. See http://matplotlib.org/users

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

2015-03-08 Thread Thomas Caswell
My knee-jerk reaction is to move the definition of `format` outside of the `Visualize.__init__` method. If you need to have hooks back into the visualize method I would use a function factory + weak refs or a class (again with weakrefs) with a `__call__` method. Tom On Sun, Mar 8, 2015 at 3:35

Re: [Matplotlib-users] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds...

2015-03-13 Thread Thomas Caswell
This is due to the fact that by default the inline backend saves the pngs using `boundingbox_inches='tight'`. The design goal on the mpl side of this kwargs was to trim off extra whitespace, but the way it is implemented works just as effectively to expand to fit artists that fall outside of the

Re: [Matplotlib-users] Draggable is not working on multiple legends of plots which are generated with twinx()

2015-03-11 Thread Thomas Caswell
The mouse events only propagate to the top axes. You will have to add both legends to the same (top) axes. See http://matplotlib.org/users/legend_guide.html#multiple-legend Tom On Wed, Mar 11, 2015, 08:57 liu lily politoeso...@gmail.com wrote: Hi, all: I have two legends, as below, I find

Re: [Matplotlib-users] 'c' Keyword for color not working with latest IPython 3.0.0

2015-03-30 Thread Thomas Caswell
This bug has already been fixed in the source. The work around for now is to use the full name `color='r'` instead of the alais 'c'. Tom On Mon, Mar 30, 2015 at 11:06 PM Yuxiang Wang yw...@virginia.edu wrote: Dear all, I have tried both latest Anaconda and WinPython in Windows 7, 64-bit

Re: [Matplotlib-users] [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

2015-04-01 Thread Thomas Caswell
before and it seems to be caused by an out of date version of setuptools. I tried reproducing it on fresh ubuntu 14.04 machine but was not able to reproduce the issue. Do you know which version of setuptools you are using? Jens ons. 1. apr. 2015 kl. 14.19 skrev Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Thomas Caswell
Yes, we are interested it more built-in themes. It may be worth making a 'matplotlib-styles' project which is _just_ a style library. On Tue, Mar 3, 2015 at 11:23 AM Marin GILLES mrngil...@gmail.com wrote: Le 03/03/2015 16:32, Christian Alis a écrit : Hi Marin, Have you looked at the

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Thomas Caswell
I was thinking of the stand alone repository to just store the style files as the style module handles the loading pretty well. The main motivation for this would be to decouple the release cycle of the styles (which can be very fast) from the library (which needs to be slower). On Tue, Mar 3,

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Thomas Caswell
That repo should probably be folded together with Tony Yu's style gallery code and eventually be migrated to live under the main matplotlib organization. I would also advocate for adding a bit of code into that repo to make it importable and to register all/some of it's style files with the

Re: [Matplotlib-users] Plotting style

2015-03-05 Thread Thomas Caswell
the rcparams are stored in a sub-class of dict which does both name and value validation on the way in. This is controlled by the class-level attribute `validate` (which is a dict mapping from key-name - validation function). In principle you could update this dict to add rcparams on the fly,

Re: [Matplotlib-users] Problems with pyplot and cm in Matplotlib ver. 1.4.3

2015-02-21 Thread Thomas Caswell
Can you re-send this with that error message formatted a bit better (It is really hard to make any sense of it all squashed into one line like that). From what I can make it out looks like it is mostly warnings, not errors. Does it correctly save the figure? Can you show us the two outputs?

Re: [Matplotlib-users] Help with updating the limits of an axis to reflect the range of new data

2015-03-26 Thread Thomas Caswell
Yikes, that formatting is almost worse! On Thu, Mar 26, 2015 at 11:53 AM rogerjames99 ro...@beardandsandals.co.uk wrote: Hi Thomas, I posted via nabble. It looks like something stripped the code. Here is the bit where the axes are set up def setup_axes(self, fig, rect): With custom locator

Re: [Matplotlib-users] Help with updating the limits of an axis to reflect the range of new data

2015-03-26 Thread Thomas Caswell
And if I look at this on nabble the code looks fine, it just was not redndering in inbox. Sorry, the issues is on my end. On Thu, Mar 26, 2015 at 11:54 AM Thomas Caswell tcasw...@gmail.com wrote: Yikes, that formatting is almost worse! On Thu, Mar 26, 2015 at 11:53 AM rogerjames99 ro

Re: [Matplotlib-users] Help with updating the limits of an axis to reflect the range of new data

2015-03-26 Thread Thomas Caswell
Can you include a minimal example of the code you are using (it looks like you did include code, but it did not come through)? It is very hard to guess at what is wrong without it. Tom On Wed, Mar 25, 2015 at 2:29 PM rogerjames99 ro...@beardandsandals.co.uk wrote: Hi, I am trying to draw a

Re: [Matplotlib-users] animation.FuncAnimation example --- how does it work?

2015-04-23 Thread Thomas Caswell
Can everyone please bring the level of snark/hostility down? Programming is frustrating, but antagonizing the mailing list does not help anyone. It is not well documented, but the signature for `func` is assumed to be `def function(required, *optional_positional)` see

Re: [Matplotlib-users] Wind barb bug

2015-04-25 Thread Thomas Caswell
Jesper, Can you open an issue on this on github. If you are feeling ambitious a pull request fixing the bug (as you seem to have a good idea of where the problem is) would also be great! Tom On Fri, Apr 24, 2015 at 8:38 AM Jesper Larsen jesper.webm...@gmail.com wrote: Hi Matplotlib Users,

Re: [Matplotlib-users] Axes3d.mouse_init(), facing problems when embedding matplotlib 3d-projection into PyQt5 App

2015-04-29 Thread Thomas Caswell
I think that this SO answer may be relevant: https://stackoverflow.com/questions/18259350/embed-an-interactive-3d-plot-in-pyside/18278457#18278457 On Wed, Apr 29, 2015 at 5:43 AM Christian Ambros ambr...@ymail.com wrote: Ok, back from revision... The is no mix-up for the show command. The

Re: [Matplotlib-users] `matplotlib`: `self._chachedRenderer` fails `assert self._cachedRenderer is not None`, when calling `draw_artist` on a patch?

2015-05-10 Thread Thomas Caswell
Please include the contents of the SO question here. Those links are very likely to rot due to over aggressive moderation on SO. Tom On Sun, May 10, 2015 at 1:49 PM bmer bhmerch...@gmail.com wrote: Hi all, I wrote up my question in detail on StackOverflow.

Re: [Matplotlib-users] Possible bug in padding between text and bounding box for PDF

2015-05-07 Thread Thomas Caswell
Sourish, We no longer are updating the 1.3.x releases. Can you reproduce this problem using 1.4.3? Tom On Thu, May 7, 2015 at 11:14 AM Sourish Basu sourish.b...@gmail.com wrote: Hello, I have been fighting with this problem for some time. It seems that if, on a plot, I have some text

Re: [Matplotlib-users] Good line plot color cycle for colorblind readers?

2015-05-15 Thread Thomas Caswell
See https://github.com/matplotlib/matplotlib/pull/2871 and the links there in. This colormap should be in 1.4.x as `'Wistia'`. http://matplotlib.org/users/colormaps.html has some references. There is an open PR to add a color-blind filter an any artist

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-16 Thread Thomas Caswell
example. Thank you all for your assistance. Things are working pretty much as I need now! Ryan On Sun, Apr 12, 2015 at 9:24 AM, Thomas Caswell tcasw...@gmail.com wrote: You can ``` #import matplotlib #matplotlib.use('nbagg') #%matplotlib nbagg import numpy as np import

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-12 Thread Thomas Caswell
, 2015 at 8:35 PM, Thomas Caswell tcasw...@gmail.com wrote: Ryan, I have not looked at your exact issue yet, but there seems to be some underlying issues with animation and nbagg which we have not tracked down yet. See: https://github.com/matplotlib/matplotlib/pull/4290 https://github.com

Re: [Matplotlib-users] How to create ternary contour plot in matplotlib?

2015-04-11 Thread Thomas Caswell
We have a pr in to add ternary axes, but unfortunately I do not understand it well enough to tell you of contours will work. See https://github.com/matplotlib/matplotlib/pull/3828 and links with in. Tom On Sat, Apr 11, 2015, 07:47 nxkryptor nxkr nxkryp...@gmail.com wrote: I am trying to

Re: [Matplotlib-users] Artifacts when saving as PDF

2015-04-06 Thread Thomas Caswell
This is probaly due to issues with not all of the vector backends supporting alpha gracefully. This can be reproduced more simply by x, y = np.ogrid[-5:5:.1, -5:5:.1] dd = np.exp(-(x**2 + y**2)) dd[dd .1] = np.nan fig, ax = plt.subplots() ax.imshow(dd, interpolation='none', cmap='gray_r')

Re: [Matplotlib-users] Artifacts when saving as PDF

2015-04-07 Thread Thomas Caswell
come up with one, but I wasn't sure what was causing it to begin with. Is there anything to be done to prevent this? Just use another backend? Steven On 4/6/15 8:47 PM, Thomas Caswell wrote: This is probaly due to issues with not all of the vector backends supporting alpha gracefully

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Thomas Caswell
What are the data limits you are using? I suspect they you are over constraining the system/order of operations issue. Try dropping the adjustable setting and pre setting both the data limits and the approximate size in figure fraction (ex via grid spec) of the axes. Tom On Tue, Apr 7, 2015,

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Thomas Caswell
changes while the aspect ratio is fixed to 1). I guess that functionality has been taken out. Mark On Wed, Apr 8, 2015 at 12:50 PM, Thomas Caswell tcasw...@gmail.com wrote: What are the data limits you are using? I suspect they you are over constraining the system/order of operations

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Thomas Caswell
. But the physical size of the lower axis is not changed, while this used to be the case in the past (but that may have been a few years back). That sure used to be the desired behavior. Thanks for your help, Mark On Wed, Apr 8, 2015 at 2:16 PM, Thomas Caswell tcasw...@gmail.com wrote: Can you

Re: [Matplotlib-users] [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

2015-04-01 Thread Thomas Caswell
by an out of date version of setuptools. I tried reproducing it on fresh ubuntu 14.04 machine but was not able to reproduce the issue. Do you know which version of setuptools you are using? Jens ons. 1. apr. 2015 kl. 14.19 skrev Thomas Caswell tcasw...@gmail.com: Make sure you have `freetype

Re: [Matplotlib-users] What are my options for speeding up a custom function called by `FuncAnimation`?

2015-05-19 Thread Thomas Caswell
What are you plotting? How big is this list that the loops are taking appreciable amounts of time?!? Are we talking seconds here or ms? Have you done enough profiling to know exactly which line in here are slow? I don't quite understand the `np.ravel` calls. You might do better either with one

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Thomas Caswell
Jody, This has come up before and the consensus seemed to be that for the anomaly data sets knowing where the zero is is very important and the default color limits will probably get that wrong. So long as the user has to set the limits, they can also select one of the diverging color maps. I

Re: [Matplotlib-users] zorder taking an array

2015-06-23 Thread Thomas Caswell
One thing you can do which may work is to partition your plots 'by hand'. It is not super elegant, but might get you the desired behavior. As long as the number of partitions is low it shouldn't hurt performance _too_ much. def z_jitter_plot(ax, x, y, partitions=10, **kwargs): labels =

Re: [Matplotlib-users] Use _cntr.so in fortran?

2015-06-25 Thread Thomas Caswell
Also keep in mind that we consider all of the c extensions to be part of the private api and do not worry so much about breaking them. Tom On Thu, Jun 25, 2015, 3:45 PM Benjamin Root ben.r...@ou.edu wrote: _cntr.so has been deprecated (it might take a couple of releases before we remove it

Re: [Matplotlib-users] Disable the Close Button from the plot dialogue

2015-05-28 Thread Thomas Caswell
How to do that is dependent on which gui frame work you are using and may be globally controlled at the desktop environment level. Tom On Thu, May 28, 2015, 12:13 Blingo petersbing...@hotmail.co.uk wrote: Hi there Just want to disable the X at the top right. It's the default frame used by

Re: [Matplotlib-users] Using blit=True in matplotlib.animation

2015-05-31 Thread Thomas Caswell
. warnings.warn(_use_error_msg) === So I can live with this, but seems there is something not quite right about the __init__.py code Should I use a different backed than the OS X backend? — Peter On May 30, 2015, at 8:43 PM, Thomas Caswell tcasw...@gmail.com wrote: Blitting

Re: [Matplotlib-users] Using blit=True in matplotlib.animation

2015-05-30 Thread Thomas Caswell
Blitting not working for the osx backend is a long standing issue due to differences between what is allowed in the different gui frame works. You have to change the backend via `use` before you import pyplot. If you are still getting the error it is likely you tried to change the backend

[Matplotlib-users] Fwd: Error on gridspec.py

2015-05-30 Thread Thomas Caswell
Jan, Please keep discussions on the list. See below for forwarded email -- Forwarded message - From: Albrecht, Jan jan.albre...@enas.fraunhofer.de Date: Tue, May 26, 2015 at 2:58 AM Subject: AW: [Matplotlib-users] Error on gridspec.py To: Thomas Caswell tcasw...@gmail.com

Re: [Matplotlib-users] Automatic selection of different colormaps for anomaly intensity data

2015-07-02 Thread Thomas Caswell
This has been discussed and the consensus was that getting the heuristics right is probably impossible (I work with dark-current subtracted image data so it can have negative values, but using a diverging color map is _very_ wrong, taking 0 as the center only makes sense some of the time).

Re: [Matplotlib-users] How to get the value of a cell in pcolormesh

2015-05-24 Thread Thomas Caswell
To get the index of the grid you clicked on requires some knowledge of what artist you are working with. See https://github.com/matplotlib/matplotlib/pull/3989 for some brand new code which makes this easier to implement in a general way. While we catch up with that you will need to implement

Re: [Matplotlib-users] Problem: AttributeError: 'module' object has no attribute '_string_to_bool'

2015-08-18 Thread Thomas Caswell
This is related to files from the previous implementation still being around. Please make sure you have fully removed the old mpl installation before installing the new one. Be aware that there is some difference in the way pip/setuptools/distutils deal with namespace packages so look for both

Re: [Matplotlib-users] Problem: AttributeError: 'module' object has no attribute '_string_to_bool'

2015-08-18 Thread Thomas Caswell
Also, please use the new mailing list at matplotlib-us...@python.org On Tue, Aug 18, 2015 at 12:53 PM Thomas Caswell tcasw...@gmail.com wrote: This is related to files from the previous implementation still being around. Please make sure you have fully removed the old mpl installation

  1   2   >