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

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

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

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

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

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

<    1   2