Re: [Matplotlib-users] accessing axis artist objects for an axes object

2016-09-06 Thread Thomas Caswell
ax.xaxis or ax.yaxis axes_grid is an alternative to the default Axes/Axis classes. Tom On Tue, Sep 6, 2016, 19:53 Hearne, Mike wrote: > Python: 3.5 > Matplotlib: 1.5.2 > > I'm trying to invert the tick labels on a Cartopy map, and I found > this Matplotlib example: > >

[Matplotlib-users] mpl governance

2016-07-31 Thread Thomas Caswell
Folks, During the sprints at SciPy Mike Droettboom and I started to adapt the Jupyter governance documents for matplotlib. We are doing this in the open, and a pull request of the changes is at: https://github.com/matplotlib/governance/pull/1 To be clear, this is a work in progress and is not

Re: [Matplotlib-users] How to set marker for a specific point in a scatter plot with colormap?

2016-07-11 Thread Thomas Caswell
scatter does not (currently) support multiple markers in a single call. You will have to do the group-by operation and call scatter is a loop. If you define your cmap and norm outside of scatter, you can pass the same instances into both calls to scatter to have mpl take care of that level of

Re: [Matplotlib-users] matplotlib v2.0.0b1

2016-05-31 Thread Thomas Caswell
python -m pip install --upgrade pip # upgrade pip to latest pip install --pre matplotlib Should now work on all platforms. Tom On Tue, May 31, 2016 at 6:31 PM Skip Montanaro wrote: > > A build of the docs is available at http://matplotlib.org/2.0.0b1 > > Thanks. Is there a

[Matplotlib-users] matplotlib v2.0.0b1

2016-05-30 Thread Thomas Caswell
Folks, We tagged the first beta for v2.0.0 tonight. Please check out the new defaults! This is tagged as a beta because we anticipate a longer than normal release cycle. The style changes are substantial and we want to make sure that we have not crippled any common use cases. The target for

Re: [Matplotlib-users] pyplot.hexbin

2016-01-29 Thread Thomas Caswell
Factor it out and give it to numpy! On Fri, Jan 29, 2016, 17:27 Benjamin Root wrote: > Hmm, you are right, there is no way to get back the information that > hexbin computed. The hexbin function is massive (in > lib/matplotlib/axes/_axes.py) and is a bit tangled up with

Re: [Matplotlib-users] Set matplotlibrc color cycle to custom colors using axes.prop_cycle (v1.5)

2015-12-20 Thread Thomas Caswell
Not at a computer to test, but try dropping the quotes. On Sun, Dec 20, 2015, 20:56 Julian Irwin wrote: > Hi, > > I'm trying to set my default color cycle in my matplotlibrc using > axes.prop_cycle. The documentation (as far as I could find...) only gives > examples like

Re: [Matplotlib-users] MatplotlibDeprecationWarning

2015-11-24 Thread Thomas Caswell
The `get_axes` method ( https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/artist.py#L213 ). See http://matplotlib.org/api/api_changes.html#prevent-moving-artists-between-axes-property-ify-artist-axes-deprecate-artist-get-set-axes for documentation. Tom On Tue, Nov 24, 2015 at

Re: [Matplotlib-users] Two circles with “exponential decay” coloring, and alpha < 1, having trouble with color mixing?

2015-11-23 Thread Thomas Caswell
The way we do the alpha blending, the output value is (alpha * v1) + ((alpha-1) * v2). All of the artists are compsited down on top of a white background so the compositing is not commutative. (a * .5) + (.5 * (b * .5 + .5)) =/= (b * .5) + (.5 * (a * .5 + .5)) On Mon, Nov 23, 2015 at 1:55 PM

Re: [Matplotlib-users] Changing the hatch linewidth

2015-10-11 Thread Thomas Caswell
I do not think the hatch linewith is currently controllable. It is still hard coded in the Agg backend. Making sure we have a reasonable api to set the hatch linewidth and then making sure it is well supported across

Re: [Matplotlib-users] register colormap collection

2015-10-01 Thread Thomas Caswell
Have a look at how cmocean (https://github.com/matplotlib/cmocean) works under the hood. I think the options are: - use a module to supply your color maps (from my_cmap_collection import my_cmap) and then pass those objects through to the functions - have your module call the register code

Re: [Matplotlib-users] How to install matplotlib for python33?

2015-09-23 Thread Thomas Caswell
I have not used `easy_install` recently. I would suggest trying pip, or doing a source install from a git checkout. I also have not seen that error message at the bottom before. Tom On Thu, Sep 17, 2015 at 10:06 AM Zaiwen Gong wrote: > Hi, > > I am trying to install matplotlib

Re: [Matplotlib-users] configure subplots feature request

2015-08-30 Thread Thomas Caswell
Neal, This is possible, but I suspect requires managing the visibility flipping and resizing your self. This does seem like a useful thing to build out and couples well with an open issue about changing the gird size after the fact. Tom On Tue, May 26, 2015 at 3:26 PM Neal Becker

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

Re: [Matplotlib-users] Plotting from a data file

2015-08-14 Thread Thomas Caswell
If you are trying to read a CSV file, I strongly suspect using pandas for ingesting them. http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html Also, please use the new mailing list at matplotlib-us...@python.org. Tom On Fri, Aug 14, 2015 at 1:39 PM Anthony Rollett

Re: [Matplotlib-users] Error when importing pyplot from matplotlib: »invalid literal for float(): 19#«

2015-08-10 Thread Thomas Caswell
:51 AM, knight91 knigh...@web.de wrote: Okay, is there a way to get an afm font file with a nicely formed header? How could I try to solve this problem? Thomas Caswell wrote You have an afm font file with a badly formed header. I thought this was fixed on the master branch though

Re: [Matplotlib-users] Error when importing pyplot from matplotlib: »invalid literal for float(): 19#«

2015-08-07 Thread Thomas Caswell
You have an afm font file with a badly formed header. I thought this was fixed on the master branch though On Fri, Aug 7, 2015 at 4:51 PM knight91 knigh...@web.de wrote: Python claims to be unable to import pyplot. Apart from that, it has been running absolutely fine. I tried different

Re: [Matplotlib-users] Blurry Scatter Plot

2015-08-02 Thread Thomas Caswell
Remove the `alpha=0.05` kwargs which is setting the alpha to be almost transparent. Tom On Sun, Aug 2, 2015 at 6:53 PM albad17 albertdorf...@gmail.com wrote: For some reason when I plot a scatter plot like this: plt.scatter(diamonds['carat'], diamonds['price'], color = 'black', alpha =

Re: [Matplotlib-users] @image_comparison decorator and unittests

2015-07-30 Thread Thomas Caswell
Paul Hobson expressed interest in making it easier to use the image comparison tests out side of the mpl test suite Tom On Thu, Jul 30, 2015, 9:28 AM Fabien fabien.mauss...@gmail.com wrote: Hi all, is it possible to use the @image_comparison decorator for tests generated within a

Re: [Matplotlib-users] Matplotlib 1.4.3 Agg problem

2015-07-15 Thread Thomas Caswell
The Agg backend is a non-gui backend, it just saves to file. The `TkAgg` and `GtkAgg` are gui backends (which are more of front ends, but I digress) which show the output of Agg in a gui window (and provide a layer for handling user interaction). I suspect that how ever your 1.3.1 was installed

Re: [Matplotlib-users] Matplotlib differences MacOSXAgg and others

2015-07-15 Thread Thomas Caswell
The PR to fix this is still open ( https://github.com/matplotlib/matplotlib/pull/4202). Tom On Wed, Jul 15, 2015 at 10:29 AM John Coppens j...@jcoppens.com wrote: Hello again, I've posted these two issues in separate mails, as I suspect they're actually different problems. This error is

[Matplotlib-users] Call for new style defaults

2015-07-12 Thread Thomas Caswell
will be a single line of python (`mpl.style.use('classic')`). Please distribute this as widely as possible. We only want to do this once and want to get feedback from as many users as possible. Thomas Caswell PS jet is harmful to you and those around you See https://github.com/matplotlib

Re: [Matplotlib-users] how to install freetype png for matplotlib

2015-07-10 Thread Thomas Caswell
See http://matplotlib.org/1.4.3/faq/installing_faq.html?highlight=install#linux-notes On Fri, Jul 10, 2015, 9:10 AM Varada Anirudhan varadanirud...@gmail.com wrote: Hello there When I was trying to install matplotlib, the output said that I needed to install freetype and png first How do I

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] 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] 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] [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] 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] 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] 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] 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] 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] `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] 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] 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] 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] 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] 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] 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] 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] [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] [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] '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] 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] 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] [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] 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
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] 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] 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] 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] 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-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] 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] 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:

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

[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] 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] 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] [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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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:

  1   2   >