Re: [Matplotlib-users] cbook.report_memory IOError

2013-07-16 Thread Eric Firing
On 2013/07/16 5:50 PM, K.-Michael Aye wrote: > Hi! > > I have just run an old code that I believe was working before on OSX. > I am trying this with matplotlib 1.2.1 on an OSX EPD running Python 2.7.3 It works for me with OSX Mountain Lion and mpl 1.2.1 compiled from source. I don't think this

Re: [Matplotlib-users] numpy masked array plot - isolated single unmasked value is hidden

2013-07-18 Thread Eric Firing
On 2013/07/17 11:25 PM, Gregorio Bastardo wrote: > Thanks Mike, it's hard to spot, but still better than nothing. Anyway, > could it be the default behaviour of plotting masked arrays (single > pixel for an isolated element)? Gregorio, I don't think this would be a good idea. It adds quite a bit

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-30 Thread Eric Firing
On 2013/07/29 9:17 PM, Jeffrey Spencer wrote: > I have three different versions of matplotlib that all output different > file sizes with matplotlib 1.1.1 providing the smallest. This is for the > same exact script. I can post the script if that helps. > > MPL 1.4.x: 539.32kb, Ubuntu 12.10 > MPL 1.

Re: [Matplotlib-users] Update legend when lines change color?

2013-08-01 Thread Eric Firing
On 2013/08/01 4:23 PM, Drain, Theodore R (392P) wrote: > I have an application where the user can edit line colors and other > attributes after the plot is drawn. The artists update just fine but the > legend doesn't change. > >>From what I can see in the legend code, it doesn't seem like there

Re: [Matplotlib-users] Update legend when lines change color?

2013-08-02 Thread Eric Firing
On 2013/08/02 8:55 AM, Drain, Theodore R (392P) wrote: > Thanks - we'll look into that. We might also see how hard it would > be to implement an update or refresh method on the legend that could > be called when the lines change to keep the legend in sync. Seems > like the legend should own that

Re: [Matplotlib-users] Failed pip install on OSX

2013-08-05 Thread Eric Firing
On 2013/08/05 10:43 AM, Matthew Brett wrote: > If Matplotlib is only expected to work for the Quartz installs - is it > worth trying to detect that and warn / error at install time? Logically, XQuartz should not be needed at all; mpl on the mac does not require X11. It looks like XQuartz is an a

Re: [Matplotlib-users] Importing pyplot blocks input thread

2013-08-06 Thread Eric Firing
On 2013/08/06 10:08 AM, John McFarland wrote: > I am trying to write some code that uses an input thread to check for user > input while another thread is running some calculations (see example below). > What I have noticed is that just including an import of pyplot (regardless > of whether it is u

Re: [Matplotlib-users] ion() is not working

2013-08-08 Thread Eric Firing
On 2013/08/08 12:33 AM, bruno.pace wrote: > Hey all! > > I have been using interactive mode inside classes for a long time, but now > I'm just trying to use it in a Shell (idle or even in terminal) and it's not > working. > > I try even simple stuff like: > > import matplotlib.pyplot as plt > > plt

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread Eric Firing
On 2013/08/12 8:35 PM, vwf wrote: > Thank you for you reply. I tried to create one after the other but when > I did this my second plot was on top of the first one. The old plot > needs to be "flushed" before starting the second one. > > This doesn't work: > import matplotlib.pyplot as plt > a=plt.

Re: [Matplotlib-users] Explicitly clearing Matplotlib/Pylab figure buffers

2013-08-23 Thread Eric Firing
On 2013/08/23 3:55 AM, Kari Aliranta wrote: > Hello, fellow Matplotlib users, > > > I'm embedding some Matplotlib figures into GUI (PyQt4) windows or widget > canvases using qt4agg as the backend. I'm having problems with these > figures popping up any time when some other part of the program calls

Re: [Matplotlib-users] Broken clabel manual=True in 1.3.0

2013-09-29 Thread Eric Firing
On 2013/09/28 11:15 AM, Felix Patzelt wrote: > Dear all, > > manually placing labels when using clabel seems to be broken in Matplotlib > 1.3.0. > > I'm on OS X 10.8.5 and have Matplotlib installed via macports. Today I > updated all installed ports and thereby got the new version of Matplotlib.

Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Eric Firing
On 2013/09/30 3:45 AM, Mark Bakker wrote: > The design of the function datestr2num, unfortunately, has an undesired > side-effect. > Today (September 30) I cannot convert monthly data, as February doesn't > have 30 days. > Conversion of: > datestr2num('2000-02') > Gives an error: > ValueError: day

Re: [Matplotlib-users] AttributeError: 'BarContainer' object has no attribute 'autoscale_None'

2013-10-11 Thread Eric Firing
On 2013/10/10 8:52 PM, Nils Wagner wrote: > Hi all, > > I tried to add a colorbar to a bar plot > > coolwarm = cm = plt.get_cmap('coolwarm') > values = range(100) > cNorm = colors.Normalize(vmin=0, vmax=values[-1]) > scalarMap = cmx.ScalarMappable(norm=cNorm, cmap=coolwarm) > colours = [] > for v

Re: [Matplotlib-users] Maidir le: Memory leak when using pyplot.ion() ?

2013-10-14 Thread Eric Firing
On 2013/10/14 7:48 AM, OCuanachain, Oisin (Oisin) wrote: > Hi Mike, > > ion(), ioff() are useful to get immediate feedback when developing a > script, when it is fully debugged I then increase the number of > iterations and leave it running over the weekend. At that point I could > obviously also h

Re: [Matplotlib-users] Maidir le: Maidir le: Memory leak when using pyplot.ion() ?

2013-10-14 Thread Eric Firing
On 2013/10/14 8:26 AM, OCuanachain, Oisin (Oisin) wrote: > > > Hi Eric, > > If .emf is no longer supported in current versions of matplotlib is > there an alternative SVG-type format I can use ? I use .emf because I > find that it tends to produce the clearest plots independent of how I > re-size

Re: [Matplotlib-users] Scatterplot c arg and NaN values, autonomous underwater vehicle

2013-11-13 Thread Eric Firing
On 2013/11/13 11:40 AM, robertdcurrier wrote: > I've pulled my hair out for the past day trying to solve this problem and > have done extensive searches to no avail. Here's my situation: > > I have data from an autonomous underwater vehicle. I have three np arrays to > plot: > 1) time on the x axis

Re: [Matplotlib-users] Error installing matplotlib

2013-11-18 Thread Eric Firing
On 2013/11/18 1:09 PM, Cristóbal Ganter wrote: > Hi I'm trying to install matplotlib in debian wheezy. But I get the > following error: > GotoBLAS : Architecture Initialization failed. No initialization function > found. > I can't find anything useful in google. Matplotlib doesn't know about blas

Re: [Matplotlib-users] Color of masked values in pcolor plots

2013-12-01 Thread Eric Firing
On 2013/12/01 5:11 AM, lin.h...@europe.com wrote: > Z = X**2 + Y**2 > Z[(X**2+Y**2 < r**2) | (X**2+Y**2 > R**2)] = np.ma.masked The problem is that Z is not a masked array. Change the first line above to Z = np.ma.array(X**2 + Y**2). Also, use pcolormesh instead of pcolor. Pcolormesh is much f

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 wrote: >> I'm happy with the draggable legends, but I have a problem. It seems >> there are three pointer modes, the initial mode (updates x, y as y

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 >

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 m

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 cor

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

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 plo

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

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] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-02 Thread Eric Firing
o; evidently I don't 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] > wrote: > > On 2014/03/01 11:03 AM, Cha

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

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 somet

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 >

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)) > plt.suptitle(file_ha

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 a

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 simpl

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 matplo

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 ar

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 lon

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

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

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, sha

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 recombin

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 valu

Re: [Matplotlib-users] closing of matplotlib.pyplot closes parent window also

2014-05-23 Thread Eric Firing
On 2014/05/22 7:21 PM, Rachana Katkam wrote: > Hi, > I am facing little trouble in understanding the pyplot concept. Pyplot is designed mainly for interactive work, and for situations where no explicit calls to a gui library are needed. When you do need to work directly with a gui library, do

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

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

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

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? Updati

Re: [Matplotlib-users] a possible bug report

2014-06-12 Thread Eric Firing
On 2014/06/12, 6:07 AM, M.Rule wrote: > Hi all, > > I haven't been able to find a more official place to report potential > Matplotlib bugs, so I'm going to describe the issue I'm seeing here. > Sorry if this is the wrong forum. This is *exactly* the right place to make a report like this. It is

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 defaul

Re: [Matplotlib-users] colors

2014-06-17 Thread Eric Firing
On 2014/06/17, 8:59 AM, Bruno Pace wrote: > Hi all, > > I'm trying to use imshow to plot some values which fall on the interval > [0,1]. I need to > use a logscale to emphasize the scales of the data. The solution I found > checking some discussions was like this > > plt.imshow(X, interpolation='no

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 mask

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 tha

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.lege

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

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 Profe

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

Re: [Matplotlib-users] Build error; Matplotlib 1.4.0 on Ubuntu 12.04, Python 3.2

2014-08-31 Thread Eric Firing
On 2014/08/31, 6:48 PM, John Ladasky wrote: > Hi folks, > > I am trying to install Matplotlib 1.4.0 on an older laptop, running > Ubuntu 12.04. I am committed to Python 3. In the standard Ubuntu > repositories, python3-matplotlib (of any version) is unavailable until > Ubuntu 13.04. > > My first

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

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" at

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 t

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

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 > > http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-dev

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

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

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

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 ps

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. Th

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

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

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 d

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
is.get_major_ticks() > #xticks[0].label1.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 wrote: >> On 2015/02/13 3:29

Re: [Matplotlib-users] MultipleLocator and MaxNLocator

2015-02-14 Thread Eric Firing
r import MultipleLocator >>> fig = plt.figure() >>> ax1 = fig.add_subplot(111) >>> ax1.xaxis.set_major_locator(MultipleLocator(5)) >>> xticks = ax1.xaxis.get_major_ticks() >>> #xticks[0].label1.set_visible(False) >>> #xticks[-1].label1.set_visible(Fa

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 MultipleLoca

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 getti

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. W

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. Howe

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

2015-02-18 Thread Eric Firing
Wed Feb 18 2015 at 6:00:26 PM Eric Firing <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 th

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] 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 <mailto:efir...@hawaii.

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

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 > |Axis.spine.set_vi

Re: [Matplotlib-users] Multiplot with one colorbar

2015-03-06 Thread Eric Firing
On 2015/03/05 11:36 PM, Dyah rahayu martiningrum wrote: > Hello all, > > I make multi plot with colorbars. I need help, how do make only one > colorbar for six panels? I also want to show only lowest x-axis. I copy > my recent code and figure here. An old example of something like this is here:

Re: [Matplotlib-users] Plotting style

2015-03-09 Thread Eric Firing
On 2015/03/09 8:14 PM, Marin GILLES wrote: > Hi, > As suggested in PR 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 > cyc

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 us

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

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

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

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

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 py

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

  1   2   3   4   5   6   7   8   9   10   >