Re: [Matplotlib-users] Failing to install matplotlib with python 3

2016-06-16 Thread Eric Firing
Alan, This mailing list is obsolete; please use matplotlib-us...@python.org. Your traceback looks vaguely familiar as something that has come up before, but I don't have any more recollection than that. Suggestions: 1) Install your python environment the easy way via anaconda or miniconda:

Re: [Matplotlib-users] How do I make a Mercator map larger

2016-01-05 Thread Eric Firing
On 2016/01/05 9:48 AM, Martin McGlensey wrote: > Arnaldo, > > Thanks for the response. I figured it out. Figsize although the units > are inches it does not correspond to inches on the display. I had to go > up to 23 X 12 to get a large image on the display. If I want to fill the > display what

Re: [Matplotlib-users] TypeError: can't multiply sequence by non-int of type 'float'

2015-09-28 Thread Eric Firing
On 2015/09/28 5:43 AM, Benjamin Root wrote: > Confirmed using a fairly recent matplotlib checkout. Could you file a > bug report? This is going to need some investigating. Line3D.set_3d_properties is not doing anything to turn zs into an ndarray; in fact, when zs is a scalar, it is turning it

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-31 Thread Eric Firing
Thank you! We are always happy to have new contributors! -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-30 Thread Eric Firing
Forcing the scalar to be a 1-element array would still leave the API inconsistent with what you show for Normalize. One solution is to flag a scalar at the start, and then de-reference at the end. Would you like to submit a PR to take care of this?

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

2015-07-15 Thread Eric Firing
It is not clear to me that 4202 would fix it, and I think 4202 has a basic problem of its own. John, if you haven't already done so, please escalate this to a github issue. Eric On 2015/07/15 4:58 AM, Thomas Caswell wrote: The PR to fix this is still open

Re: [Matplotlib-users] TypeError: Dimensions of C (645, 536) are incompatible with X (538) and/or Y (646); see help(pcolormesh)

2015-06-30 Thread Eric Firing
On 2015/06/30 6:41 AM, Benjamin Root wrote: It looks like your X data is one element larger than it needs to be. I know pcolor() accepts grids that are (N+1,M+1), and I *think* pcolormesh does the same. It will also accept grids that are (N,M) as well, but will drop the last row and collumn.

Re: [Matplotlib-users] backend_webagg for streaming plot updates: examples?

2015-06-24 Thread Eric Firing
On 2015/06/23 10:39 AM, Eric Firing wrote: I would like to be able to publish plots that are updated as data are received by the server. I don't actually want any of the toolbar interactivity--I just want the updated plot to appear in the browser automatically. I suspect this can all be done

[Matplotlib-users] backend_webagg for streaming plot updates: examples?

2015-06-23 Thread Eric Firing
I would like to be able to publish plots that are updated as data are received by the server. I don't actually want any of the toolbar interactivity--I just want the updated plot to appear in the browser automatically. I suspect this can all be done quite easily using the webagg backend, but

Re: [Matplotlib-users] Problem on Basemap gshhs data and the associated is_land function

2015-06-19 Thread Eric Firing
On 2015/06/10 4:24 AM, Jiali Ma wrote: Thanks for reading my mail. In basemap toolkit of matplotlib, I found the Coastline data used is from the GSHHS (http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html).But I found it barely satisfying to use. Are you specifying a sufficiently high

Re: [Matplotlib-users] [matplotlib-devel] pyplot functions: do you rely on the hold kwarg?

2015-06-07 Thread Eric Firing
On 2015/06/07 12:05 PM, Nathaniel Smith wrote: On Sun, Jun 7, 2015 at 2:37 PM, Eric Firing efir...@hawaii.edu wrote: Matplotlib's pyplot retains quite a few vestiges from its original Matlab-workalike heritage; we would like to gradually eliminate those that no longer make sense. One

[Matplotlib-users] pyplot functions: do you rely on the hold kwarg?

2015-06-07 Thread Eric Firing
Matplotlib's pyplot retains quite a few vestiges from its original Matlab-workalike heritage; we would like to gradually eliminate those that no longer make sense. One such candidate is the hold kwarg that every pyplot function has, with a True default. I don't think it serves any useful

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

2015-06-05 Thread Eric Firing
On 2015/06/05 6:15 AM, Joe Kington wrote: Hopefully I will have some time today to play around with the D option. I want to see if I can shift the curve a bit to include more yellows and orange so that it can have a mix of cool and warm colors. I was thinking the same thing

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

2015-06-05 Thread Eric Firing
On 2015/06/05 8:17 AM, Sourish Basu wrote: Very often the zero of an anomaly is not at the center of the extrema, and requires creating a custom diverging colormap anyway (see attached example). Reminder: in matplotlib, color mapping is done with the combination of a colormap and a norm.

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

2015-06-05 Thread Eric Firing
On 2015/06/05 11:13 AM, Jody Klymak wrote: Though I was hazily aware of norms, I’d not really seen that before. I particularly like the example athttp://matplotlib.org/examples/pylab_examples/pcolor_log.html This seems useful enough that a section under “User Guide:Advanced Guide” would be

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

2015-06-04 Thread Eric Firing
I am forwarding a message from Nathaniel Smith which is the start of a long thread on matplotlib-devel http://news.gmane.org/gmane.comp.python.matplotlib.devel related to changes that are in the works for matplotlib, and that are therefore of interest to matplotlib users. Specifically, we will

Re: [Matplotlib-users] problem: AttributeError: 'float' object has no attribute 'trace'

2015-06-03 Thread Eric Firing
On 2015/06/03 8:03 AM, Juan Wu wrote: Hi, List experts, Any one can help for this error solution? I googled but did not find this report. Thanks in adance... matplotlib.figure.Figure at 0x1afe8f50 Traceback (most recent call last): File ipython-input-38-7909dff7bc28, line 5, in

Re: [Matplotlib-users] Runtime Error on Solaris - Error Closing Dupe File Handle

2015-05-28 Thread Eric Firing
On 2015/05/28 3:13 AM, Bryan Williams wrote: I have gcc on the box. I also installed the C compiler for Solaris (cc), but I couldn't seem to find an option to switch it so that it uses cc rather than gcc. Maybe you can do this with an environment variable? export CC=/usr/bin/cc It does look

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Eric Firing
On 2015/05/22 9:33 AM, Matteo Niccoli wrote: The second method suggested by titusjan replaces value in hsv space with intensity as suggested. Eric you will notce I did include the line img_array = plt.get_cmap('cubehelix')(data_n) and yet the colormapping is not working. I don't understand

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-21 Thread Eric Firing
On 2015/05/21 5:50 AM, Matteo Niccoli wrote: I posted a question on stackoverflow about creating with making my own shading effect (I want to use horizontal gradient for the shading).

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-21 Thread Eric Firing
On 2015/05/21 11:28 AM, Matteo Niccoli wrote: OK, I understand. Could you suggest a way to reduce that 3D array to a 2D array and plot it with a specific colormap, while preserving the shading? It looks like you will get what you want by following the titusjan's advice in his reply. If you

Re: [Matplotlib-users] [matplotlib-devel] Easy problem working with dev library

2015-05-16 Thread Eric Firing
On 2015/05/16 3:20 PM, Paul Hobson wrote: On Saturday, May 16, 2015 at 14:58, Neil Girdhar mistersh...@gmail.com mailto:mistersh...@gmail.com, wrote: Thanks, and if I want to revert my system to its old matplotlib? ​ ​ ​Assuming you cloned the repo from git, just checkout any revision

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

2015-05-15 Thread Eric Firing
On 2015/05/15 11:41 AM, Nathan Goldbaum wrote: Hi all, This is a bit of a case of lazy mailing list, but I'm hoping there might be some experts here who can point me in the right direction. Does anyone know of a good resource to pull a color cycle for line plots that are good for

Re: [Matplotlib-users] Visulization of orthogonal grid

2015-05-06 Thread Eric Firing
On 2015/05/05 6:03 PM, GoogleWind wrote: Dear all, Matplotlib currently support the visuliaztion of triangular mesh and square-cell map. Is there any solutions to support the visulization of orthogonal grid as follows,

Re: [Matplotlib-users] I need to force the rounding of x axis limits

2015-04-12 Thread Eric Firing
On 2015/04/05 11:19 PM, giacomo boffi wrote: INTRO = please consider the following code (I'm trying to draw a timeline) 1 from matplotlib import pyplot, patches 2 fig = pyplot.figure() 3 ax = fig.add_subplot('111') 4 ax.add_patch(patches.Rectangle((1933,0.25), 73, 0.5)) 5

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

2015-04-08 Thread Eric Firing
On 2015/04/08 11:15 AM, Jody Klymak wrote: Hi Eric, import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=2,sharex=True) axes[0].set_aspect(1.) axes[0].plot(np.arange(10),np.arange(10)) axes[0].set_ylim([0,24]) axes[0].set_xlim([0,12]) axes[1].plot(np.arange(10),np.arange(10)*2.)

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

2015-04-08 Thread Eric Firing
On 2015/04/08 7:04 AM, Jody Klymak wrote: Following up on this, I’d like to complain about set_aspect()… If I do: import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=2,sharex=True) axes[0].set_ylim(0,1.) axes[0].set_aspect(1.) plt.show() the x-axis goes from 0. to 1., but

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

2015-04-08 Thread Eric Firing
On 2015/04/08 7:04 AM, Jody Klymak wrote: Maybe there is a reason for the default, but I really think the data view should be prioritized over the shape of the axis. I forgot to include: I was trying to make everything sane (and reversible) under zoom and pan as well as reshaping and resizing.

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

2015-04-08 Thread Eric Firing
On 2015/04/08 8:43 AM, Jody Klymak wrote: Hi Eric, On 8 Apr 2015, at 11:02 AM, Eric Firing efir...@hawaii.edu wrote: I'm the guilty party for most of how set_aspect works. I developed it a long time ago. Yes, there was a reason--still is, I'm 99% sure--but I don't remember everything

Re: [Matplotlib-users] Wind barb plot for a single station data

2015-03-25 Thread Eric Firing
On 2015/03/25 7:08 AM, Foehn wrote: Hello all, the routine barbs(x,y,u,v) in basemap plots a regular 2-dimensional vector field for a geographic projection. What I want is a barb-routine that plots single station wind data (and not fields!) at their approriate lat,lon or x,y-position like

Re: [Matplotlib-users] Plotting style

2015-03-10 Thread Eric Firing
On 2015/03/09 8:14 PM, Marin GILLES wrote: Hi, As suggested in PR 2702 https://github.com/matplotlib/matplotlib/pull/2702, I have been trying to tell |scatter| to |get_current_color_cycle| for the facecolor. I guess I can use |axes.get_color()|to get the current color in the color cycle.

Re: [Matplotlib-users] Plotting style

2015-03-10 Thread Eric Firing
On 2015/03/09 8:56 PM, Marin GILLES wrote: Actually, I just brute loaded mpl for source... I am not really used to it. So I guess I'll have to make a virtual env and install mpl in it? You have to build and install it somewhere, where it will be found when you try to import it; whether you use

Re: [Matplotlib-users] Plotting style

2015-03-05 Thread Eric Firing
On 2015/03/05 6:11 AM, Marin GILLES wrote: Hello everyone, After working a bit on the styles, I noticed that some parameters could not be modified using an rc or style file (for example, turning off the right, left, up or down axis). I kind of saw how to do it using the

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

2015-02-21 Thread Eric Firing
On 2015/02/21 5:32 PM, Starfighter wrote: Per request my question is being resubmitted here. I'm attempting to generate contour and a color map in Matplotlib ver. 1.4.3 on a MacBook Pro under Mac OS X ver. 10.10.2 in Python 2.7.3 with the Anaconda environment. A zip file has been attached

Re: [Matplotlib-users] axes.get_position() inaccurate until after savefig()?

2015-02-18 Thread Eric Firing
On 2015/02/18 7:51 AM, Ryan Nelson wrote: I don't have an answer to your question exactly. But I'll just say that this does make sense. The aspect-corrected axes (after show) is a subset of what you originally asked for, i.e. the bottom is higher, and the height is smaller. My guess is that

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

2015-02-18 Thread Eric Firing
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 post that demonstrates that quiver_key() used to work for me, this image was generated on 17-Jul-2014. However,

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

2015-02-18 Thread Eric Firing
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. Eric For 3.0 %matplotlib notebook will also work. Tom On Wed Feb 18 2015 at 7:25:41 PM Eric Firing efir...@hawaii.edu mailto:efir...@hawaii.edu wrote: On 2015/02/18 6

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

2015-02-18 Thread Eric Firing
PM Eric Firing efir...@hawaii.edu mailto: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 post

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

2015-02-18 Thread Eric Firing
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 there is no one. Especially I’m interested in the new features of |nbagg backend|. All I know is what I read in an email here, namely that /The nbagg

Re: [Matplotlib-users] Trouble getting colormap set_under and set_over to work with PolyCollection

2015-02-17 Thread Eric Firing
On 2015/02/17 12:24 PM, Luke Lee wrote: It's been suggested to on the above tracker to use imshow. However, that doesn't address the issue I'm having using PolyCollection. I don't think this has anything to do with PolyCollection versus Image, and I was not suggesting that you use imshow.

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
()[1:-1]) ax1.plot(list(range(11))) plt.show() On Sat, Feb 14, 2015 at 2:01 AM, Eric Firing efir...@hawaii.edu wrote: On 2015/02/13 3:29 PM, Tommy Carstensen wrote: Is it possible to combine MultipleLocator and MaxNLocator? One seems to erase the effect of the other. They are for different

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
.set_visible(False) #xticks[-1].label1.set_visible(False) ax1.set_xticks(ax1.get_xticks()[1:-1]) ax1.plot(list(range(11))) plt.show() On Sat, Feb 14, 2015 at 2:01 AM, Eric Firing efir...@hawaii.edu wrote: On 2015/02/13 3:29 PM, Tommy Carstensen wrote: Is it possible to combine MultipleLocator

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
On 2015/02/14 8:45 AM, Tommy Carstensen wrote: Erik, that doesn't seem to work either. I tried this: import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator class TrimmedMultipleLocator(MultipleLocator): def tick_values(self, vmin, vmax): return

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
On 2015/02/14 9:15 AM, Tommy Carstensen wrote: Eric, it works if I do: return MultipleLocator.tick_values(self, vmin, vmax)[2:] But not if I do as first suggested by you: return MultipleLocator.tick_values(self, vmin, vmax)[1:] Are you using my test script but getting a

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-13 Thread Eric Firing
On 2015/02/13 3:29 PM, Tommy Carstensen wrote: Is it possible to combine MultipleLocator and MaxNLocator? One seems to erase the effect of the other. They are for different situations. MultipleLocator is for when you know what you want your tick interval to be; MaxNLocator is for when you

Re: [Matplotlib-users] Bug in matplotlib 1.4.2

2015-02-09 Thread Eric Firing
On 2015/02/09 8:19 AM, Thomas Caswell wrote: Can you test with 1.4.3rc1? I believe this has been fixed. Oops! Of course--I never use ',', and I was forgetting that it *is* just one pixel. Eric On Mon Feb 09 2015 at 1:07:28 PM Alex Böhnert alex.boehn...@gmail.com

Re: [Matplotlib-users] Bug in matplotlib 1.4.2

2015-02-09 Thread Eric Firing
On 2015/02/09 8:19 AM, Thomas Caswell wrote: Can you test with 1.4.3rc1? I believe this has been fixed. I don't think so. I can reproduce it on master. Regardless of the ms kwarg, I see only a pixel. Eric On Mon Feb 09 2015 at 1:07:28 PM Alex Böhnert alex.boehn...@gmail.com

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Eric Firing
On 2015/01/24 6:11 AM, Sappy85 wrote: I would like to draw very, very simple maps of only europe in matplotlib / basemap, which takes very much time (around 10 seconds!). This is just unreal!? Setting of resolution is only l (low). I need to plot hundreds of those maps every few hours. This

Re: [Matplotlib-users] matplotlib power spectral density (PSD) value discrepancy

2014-12-17 Thread Eric Firing
On 2014/12/17, 5:37 AM, Thomas Caswell wrote: What version of mpl are you using? These functions got a lot of work between 1.3 and 1.4. Tom, Sorry, I answered only in his parallel github issue. https://github.com/matplotlib/matplotlib/issues/3927. I'm closing it now. The upshot is that psd

Re: [Matplotlib-users] how to prevent colorbar from taking space from axes

2014-12-12 Thread Eric Firing
On 2014/12/12, 5:11 AM, Slavin, Jonathan wrote: Hi Ben, Thanks for those tips. I ended up giving a list of axes to the ax argument of colorbar as you suggested. That took care of the misalignment of the top plots and bottom plots but then the colorbar extended the full vertical height of

Re: [Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Eric Firing
On 2014/11/27, 4:55 AM, Bala subramanian wrote: Friends, I want to make multiple graphs on a single axes. As an example, i am pasting below an article where it has been shown. http://www.ncbi.nlm.nih.gov/pubmed/23403925 My plot of interest is *Figure7B*, where multiple distribution are

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

2014-11-21 Thread Eric Firing
On 2014/11/20, 7:11 PM, Maria Liukis wrote: Hello, I have a problem plotting data which is defined on a grid other than rectangular mesh, and would greatly appreciate any advise. My data is defined for 0.1degree grid for the state of California, and I don’t want to interpolate my data

Re: [Matplotlib-users] Single color transparent colormap

2014-11-20 Thread Eric Firing
On 2014/11/19, 1:03 PM, Benjamin Root wrote: What you are seeing is the fact that the adjacent cells share the same coordinates, so neighboring cells overlap by one pixel. This is only visible when alpha != 1. This is a tricky issue to solve, but I could have sworn we made some progress on

Re: [Matplotlib-users] [matplotlib-devel] Development issue: Assign labels to colorbar extensions

2014-11-16 Thread Eric Firing
On 2014/11/16, 10:21 AM, j1 wrote: I have posted this in the user sub forum as well because i'm not sure that it is a user issue or development issue. Information about my problem and my code are here

Re: [Matplotlib-users] Problem extending a custom colormap

2014-11-03 Thread Eric Firing
On 2014/11/03, 2:19 PM, Damien Irving wrote: I often like to define my own colormaps using hex strings, e.g. hex_list = ['#FFF295', '#FFD555', '#FF850B', '#D55000', '#D5', '#550040','#600080', '#80', '#D5', '#0B85FF', '#55AAFF', '#95CAFF'] However, when I pass them to contourf and

Re: [Matplotlib-users] twinx cla problem

2014-10-10 Thread Eric Firing
On 2014/10/10, 4:45 AM, Duke, Charles wrote: With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a much longer program where the twinx axes must be cleared while retaining the

Re: [Matplotlib-users] Antialiasing colorbars

2014-09-30 Thread Eric Firing
On 2014/09/30, 2:41 AM, Jesper Larsen wrote: Hi matplotlib users, Is it possible to disable antialiasing for a colorbar? If not directly is it the possible to postprocess the axes instance to se antialiasing for relevant elements? The colorbar returns a Colorbar object, the solids attribute

Re: [Matplotlib-users] plt.ion() doesn't enable interactive mode when ran as script on mac osx 10.8.5

2014-09-21 Thread Eric Firing
On 2014/09/21, 6:07 AM, Petar Bakalov wrote: Using python 2.7.5 and matplotlib 1.4.0 on mac OSX 10.8.5. The output of the following snippet: |import matplotlib.pyplotas plt plt.ion() print Is interactive:?, plt.isinteractive() | when ran from shell ($ python snippet.py) is: Is

Re: [Matplotlib-users] Region within contour -- 2D array

2014-08-28 Thread Eric Firing
On 2014/08/28, 3:02 AM, Matthew Czesarski wrote: Hi Matplotlib Users! I have some 2-d arrays, which i am displaying with implot, and deriving contours for with contour. Easy - I'm just pulling them out of collections[0].get_paths() . However what's not easy is that I would like to

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Eric Firing
On 2014/07/30, 7:26 AM, Benjamin Root wrote: There is no --pylab for that. I don't know what development version you are using, but for 2.1.0, it is still there--and it does what needs to be done. -- Infragistics

Re: [Matplotlib-users] Basic matshow question

2014-07-29 Thread Eric Firing
On 2014/07/29, 7:04 PM, JBB wrote: Hello, I am relatively new to Python, numpy, matplotlib, etc., with a reasonable amount of Matlab experience. I am trying to do some simple array visualizations before moving on to specific work. e.g. I have a 5x5x10 array and I'd like to see each 5x5

Re: [Matplotlib-users] ImportError: No module named 'mpl_toolkits'

2014-07-13 Thread Eric Firing
On 2014/07/13, 12:05 AM, Tommy Carstensen wrote: To matplotlib-users, When I do this on Linux: from mpl_toolkits.basemap import Basemap Then I get this error: ImportError: No module named 'mpl_toolkits' Sounds like it might be a problem with the particular versions of matplotlib and

Re: [Matplotlib-users] refresh a matplotlib plot when reruning a script

2014-06-28 Thread Eric Firing
On 2014/06/27, 9:59 AM, zunbeltz wrote: I have a script that fetchs data from a database and plot using something similar to fig, (ax1, ax3) = plt.subplots(2, 1, sharex=False, sharey=False, num=fignum) ax1.errorbar(...) title(...) ax2 = ax1.twiny() ax4 = ax2.twiny() ... plt.legent()

Re: [Matplotlib-users] How to make diagram x_label by time and x_lable can move automatic

2014-06-21 Thread Eric Firing
On 2014/06/21, 3:39 PM, 不坏阿峰 wrote: is there someone can help me ? Posting a *simple*, self-contained example as a starting point would make it more likely that someone would understand your question. Leave out everything that is irrelevant--I suspect all the gui and threading code is in

Re: [Matplotlib-users] colors

2014-06-19 Thread Eric Firing
On 2014/06/18, 5:23 AM, Bruno Pace wrote: Ok, so using the norm=SymLogNorm I cannot distinguish the values that are exactly 0.0 from the really small ones, right? Would it be possible Correct, the scale is linear for small values. to make use of the set_bad method without having to use masked

Re: [Matplotlib-users] Adding a colorbar --- how?

2014-06-15 Thread Eric Firing
On 2014/06/15, 12:17 PM, Virgil Stokes wrote: There are some rather nice and useful matplotlib examples for colormaps that are shown at: http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb In*Example 1. Sine wave colored by time (uses the defaults

Re: [Matplotlib-users] Matplotlib brewer2mpl issue with plotting

2014-06-12 Thread Eric Firing
On 2014/06/12, 1:01 AM, Rachana Katkam wrote: Hi all, I am stuck with plotting that uses brewer2mpl. The following link describes my problem, please have a look at it: http://stackoverflow.com/questions/24181183/matplotlib-brewr2mpl-plotting-issue The traceback doesn't match the code I find

Re: [Matplotlib-users] Upgrading matplotlib

2014-06-12 Thread Eric Firing
On 2014/06/12, 4:14 AM, Rachana Katkam wrote: Hi all, I have an issue in upgrading my matplotlib 1.0.1 to 1.3.1 I am using Fedora, but the command: Yum update python-matplotlib is not working. My python version is 2.7, is that an issue? Is there any way for upgrading matplotlib? Updating

Re: [Matplotlib-users] pick markers only but not the connecting line

2014-06-07 Thread Eric Firing
On 2014/06/07, 4:12 PM, C M wrote: I had been using a custom function (written originally by Jae-Joon and modified a little by me...quite a long time back now) that was working to allow point picking of markers, but *not* the line connecting them. However, I've now discovered with the help of

Re: [Matplotlib-users] pick markers only but not the connecting line

2014-06-07 Thread Eric Firing
On 2014/06/07, 5:03 PM, C M wrote: On Sat, Jun 7, 2014 at 10:18 PM, Eric Firing efir...@hawaii.edu mailto:efir...@hawaii.edu wrote: On 2014/06/07, 4:12 PM, C M wrote: I had been using a custom function (written originally by Jae-Joon and modified a little by me

Re: [Matplotlib-users] Undefined color model and inconsistencies between backends

2014-05-16 Thread Eric Firing
On 2014/05/16 4:41 PM, Michael Goerz wrote: Hi, While playing around for an afternoon with colors in matplotlib, I came across some inconsistencies. I was trying to define colors in sRGB (my understanding is that sRGB as a standardized color space is device-independent). Giving RGB values to

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Eric Firing
On 2014/05/11 7:56 PM, Yuxiang Wang wrote: Dear all, I am curious that whether this is possible in matplotlib: I first create some figures, with subplots. import matplotlib.pyplot as plt fig1, axs1 = plt.subplots(2, 2) fig2, axs2 = plt.subplots(2, 2) And then, could I recombine them, so

Re: [Matplotlib-users] basic pgf test fails

2014-05-07 Thread Eric Firing
On 2014/05/07 2:34 AM, Neal Becker wrote: Neal Becker wrote: I tried the simple example, but all examples I try choke on savefig ('blah.pdf') This is fedora20 linux, with pretty modern, complete texlive. I tried rm'ing tex-cache example.py # -*- coding: utf-8 -*- import

Re: [Matplotlib-users] Set sharex and sharey on the axes object

2014-05-07 Thread Eric Firing
On 2014/05/07 2:12 PM, Yuxiang Wang wrote: Dear all, I was wondering that, is there a method like axes.set_sharex(ax0) so I can directly set the sharex and sharey properties of an axes object? It seems that the only way to do this is at time of creation via fig.add_subplots(1, 2, 2,

Re: [Matplotlib-users] Entropy calculation incorrect?

2014-04-25 Thread Eric Firing
Nathan, Thanks for bringing this up. It looks like the short-term fix is to make the documentation match the code. Longer term, it seems to me like this is the sort of thing that should be deprecated; it doesn't belong in matplotlib any more. Would you open an issue on Github, please? Even

Re: [Matplotlib-users] Composing image from hex tiles using RegularPolyCollection

2014-04-25 Thread Eric Firing
On 2014/04/24 11:40 PM, Tom Grydeland wrote: Hi all, I will explain what I’m trying to achieve first, then the approaches I’ve attempted so far, with results. I have data on a 2D grid which I want to present as an image — a la pyplot.imshow() — except that the grid is hexagonal, not

Re: [Matplotlib-users] turning off autoscale

2014-04-23 Thread Eric Firing
On 2014/04/23 11:19 AM, Michael Mossey wrote: I'm sorry, these are questions that could be found in the Axes documentation, but I really don't feel like scrolling through 100 pages that are irrelevant hoping I can find the relevant functions, which I don't even know what they are called. Is

Re: [Matplotlib-users] checking if an artist is in the list of artists for an axes

2014-04-22 Thread Eric Firing
On 2014/04/21 8:30 PM, Michael Mossey wrote: How do I check if an artist is in the list of artists attached to an axes? if a in ax.get_children(): ... Eric Mike -- Start Your Social Network Today - Download

Re: [Matplotlib-users] Spooling up on matplotlib .... run all the examples

2014-04-20 Thread Eric Firing
On 2014/04/17 11:07 AM, Elden Crom wrote: matplotlib is impressive in its capabilities, I didn't realize how much so until I download from the git, and made a little script to run all of the examples. Thank you. It's hidden away, but a script to do this type of thing exists. For a long

Re: [Matplotlib-users] removing a plot from an axes

2014-04-18 Thread Eric Firing
On 2014/04/18 12:21 PM, Michael Mossey wrote: Sorry for what is a beginnerish question but I'm having a hard time using the docs. I want to remove a previous plot from an axes. How do I do this? If you want to clear the axes, call the cla() or clear() method. If you want to remove an artist

Re: [Matplotlib-users] Left-aligned and centered title

2014-03-17 Thread Eric Firing
On 2014/03/17 3:31 AM, Florian M. Wagner wrote: Dear users, I would like label my subplots with a horizontally left-aligned letter (wanted by the journal) and the normal, centered axes title, which should both be vertically in line. The following example does not work: from matplotlib

Re: [Matplotlib-users] Troubleshooting

2014-03-12 Thread Eric Firing
On 2014/03/12 2:41 PM, Caio Sanches wrote: Hey there! I have a mac 10.9 (Mavericks), and I needed matplotlib for a course I was participating. I installed python 2.7.6, as requested, and downloaded the installer (dmg) from the sourceforge page. I created a simple file, to plot a simple

Re: [Matplotlib-users] Clip or skip lines going over border of canvas

2014-03-07 Thread Eric Firing
On 2014/03/06 10:43 PM, svebert wrote: Hi! I plot measurment data and connect them with lines (style eg. -*r). Points which are outside of the ylimits are still connected with points which are inside of the ylimits. Is there any way to tell matplot to only connect two points if both are

Re: [Matplotlib-users] Color bar extents

2014-03-06 Thread Eric Firing
On 2014/03/06 4:18 AM, Asma Riyaz wrote: Hi, I am stuck at setting the color bar minimum and maximum values, according to what I found I need to set ticks to a numpy linspace array. Here is my code: *threshold=1.01 fig = plt.figure(figsize=(25,25))

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Eric Firing
On 2014/03/05 11:37 AM, Asma Riyaz wrote: Sorry I somehow forgot to paste the imshow call to plot the .png image(pasted the entire code again), I am trying the different interpolation parameters in the mean time as suggested by Pierre data=np.array(full_len) cmap = mpl.cm.hot if

Re: [Matplotlib-users] Issue with relim and autoscale_view in 1.3.1

2014-03-04 Thread Eric Firing
On 2014/03/04 12:56 PM, Stuart Mentzer wrote: Hi, I'm seeing odd behavior with the relim() and autoscale_view() call sequence with matplotlib 1.3.1. In some cases I am ending up with axis ranges of [-0.05,0.05] instead of the actual data ranges. This happens with scatter plots and sometimes

Re: [Matplotlib-users] About the scientific ticker format on pylab plot

2014-03-03 Thread Eric Firing
On 2014/03/03 11:40 AM, Ying Liu wrote: Hi, I want to know how to set the scientific ticker format in pylab. I know that I can set it to the form of 1e21, but what I want is something like x10^21, as follows: Inline image 1 - Inline image 2 Can anybody tell me how to do this? I

Re: [Matplotlib-users] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-02 Thread Eric Firing
understand what the problem is, so I don't know what part remains unsolved. Eric Cheers, Chao On Sat, Mar 1, 2014 at 10:39 PM, Eric Firing [via matplotlib] [hidden email] /user/SendEmail.jtp?type=nodenode=42956i=0 wrote: On 2014/03/01 11:03 AM, ChaoYue wrote: The most correct way

Re: [Matplotlib-users] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-01 Thread Eric Firing
On 2014/03/01 9:57 AM, Chao YUE wrote: Dear all, In many cases in geoscience mapping we want to show the some missing values as some special color in the colorbar. like attached one. I know there is one method in matplotlib colormap called set_bad, official docs says: Set color to be used

Re: [Matplotlib-users] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-01 Thread Eric Firing
On 2014/03/01 11:03 AM, ChaoYue wrote: The most correct way might be to design a new colormap with white color exactly in the middle, however this is very tedious, especially if I want to try different colormaps. so the alternative approach would be to set the values falling in (-1,1) as

Re: [Matplotlib-users] reduce the number of ticks

2014-02-17 Thread Eric Firing
On 2014/02/17 4:58 AM, Pierre Haessig wrote: Hi, In order to get a plot with a small number of ticks, it is possible to create a matplotlib.ticker.MaxNLocator object with a small value for `nbins`. However, I found it also possible to modify the existing AutoLocator instances, since

Re: [Matplotlib-users] trouble with Arrow

2014-02-02 Thread Eric Firing
On 2014/02/02 6:52 PM, Alan G Isaac wrote: Also, despite setting `edgecolor=None`, the edge is still stroked. I suspect you need edgecolor='none'. In general, specifying a color as the string 'none' means don't draw it.

Re: [Matplotlib-users] trouble with Arrow

2014-02-02 Thread Eric Firing
On 2014/02/02 7:45 PM, Alan G Isaac wrote: Last question about this for now ... Yet another issue with `arrow`: the docs say a dashed linestyle is supported http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.arrow but really it is not: the *edge* is dashed rather than the tail!

Re: [Matplotlib-users] Clabel conflicts with contourf

2014-01-30 Thread Eric Firing
On 2014/01/30 1:10 AM, Alexis Praga wrote: Hi, I've attached a reproducible example : when clabel is used, there are some empty (i.e white) triangles in the countour. It does not occur without clabel. Thanks for the report--but clabel is intended to be used only with contour, not with

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/28 11:40 PM, Ian Thomas wrote: On 29 January 2014 03:21, Eric Firing efir...@hawaii.edu mailto:efir...@hawaii.edu wrote: On 2014/01/28 10:01 AM, A Short wrote: Hi - Ive now improved my code and confirmed the use of the right grib file but i cant for the life

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/29 5:41 AM, A Short wrote: Is there any work around so it looks like the below image? It looks like with any reasonable contouring algorithm, this would require interpolating into land regions, contouring, and then plotting the land on top. The key is the interpolation, not the

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-28 Thread Eric Firing
On 2014/01/28 10:01 AM, A Short wrote: Hi - Ive now improved my code and confirmed the use of the right grib file but i cant for the life of me figure out the missing data near the coastline..? Could anyone help? The present contouring algorithm works with rectangular blocks, and if any

Re: [Matplotlib-users] Basemap Plotting on Floating(?) Axes

2014-01-23 Thread Eric Firing
On 2014/01/22 1:51 PM, geo_leeman wrote: Hello all, Several of us have been stumped on how to create a map with basemap that doesn't have a rectangular bounding box. I've attached an example of what we are trying to create (done with GMT and not ours). Browsing the docs I thought it may be

Re: [Matplotlib-users] pyplot.plot plotting points in wrong order making loops in the graph display

2014-01-09 Thread Eric Firing
On 2014/01/09 1:57 AM, vargfran wrote: Dear all pyplot seems to be plottting(joining points with lines) in the wrong order I have checked all the algorithms relating the data being plotted and everything is in order http://matplotlib.1069221.n5.nabble.com/file/n42696/bad_line_joints.png this

Re: [Matplotlib-users] Matplotlib interactive shortcuts?

2014-01-08 Thread Eric Firing
On 2014/01/08 11:40 AM, Skip Montanaro wrote: Apologies. Gmail (or my fingers) were acting up... On Wed, Jan 8, 2014 at 3:39 PM, Skip Montanaro s...@pobox.com wrote: I'm happy with the draggable legends, but I have a problem. It seems there are three pointer modes, the initial mode (updates

  1   2   3   4   5   6   7   8   9   10   >