Re: [Matplotlib-users] Looking for feedback on figures using matplotlib and jupyter notebook

2016-01-29 Thread Andreas Mueller
kup cell? [maybe I should move that question to the jupyter list, though] On 01/28/2016 10:17 PM, Fernando Perez wrote: On Thu, Jan 28, 2016 at 3:23 PM, Andreas Mueller <mailto:t3k...@gmail.com>> wrote: Hi all. This is about a joint jupyter-notebook / matplotlib problem I

[Matplotlib-users] Looking for feedback on figures using matplotlib and jupyter notebook

2016-01-28 Thread Andreas Mueller
Hi all. This is about a joint jupyter-notebook / matplotlib problem I've been thinking about. So I'm writing a book using jupyter-notebook, and all my figures are generated using matplotlib. In books, there is usually a figure caption with a running number and some description. From what I re

Re: [Matplotlib-users] A separate legend box for the markers only?

2014-09-12 Thread Andreas Hilboll
, linen), ('linelabel1', ...)) # plot symbols symb1 = ax.plot(...) ... symbn = ax.plot(...) symbleg = ax.legend((symb1, ..., symbn), ('symblabel1', ...)) Cheers, Andreas > > > On Fri, Sep 12, 2014 at 11:00 AM, ConcreteVitamin > wrote: >> Hi ma

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Andreas Hilboll
return strpdate2num('%d/%m/%y') converters={0:_conv_date} Cheers, Andreas. > > Thanks, > > Mark > > > > On Fri, Apr 25, 2014 at 10:46 AM, Mark Bakker <mailto:mark...@gmail.com>> wrote: > > Hello List, > > datestr2num work

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Andreas Hilboll
'm not mistaken, you should be able to set the appropriate rcParam, i.e., mpl.rcParams['axes.color_cycle'] = ['orange', default_cycle[1::]] Cheers, Andreas. > > I don't like this approach because iterating through the color cycle > will cause the next plot to start

Re: [Matplotlib-users] completely filling a figure canvas

2014-02-14 Thread Andreas Hilboll
>> Is there a way to have subplots_adjust() automatically chose left, >> right, bottom, top values so that everything that's been drawn tightly >> fits the figure? > What about plt.tight_layout() ? > (or fig.tight_layout )

[Matplotlib-users] completely filling a figure canvas

2014-02-13 Thread Andreas Hilboll
'tight' in savefig, except that I want the figure dimensions to stay the same and have the contents of the figure adjust to the figsize so that no space is wasted. Obviously, the hspace and wspace in subplots_adjust would still have to be choseable by the user. A

[Matplotlib-users] Question about basic_example_writer.py

2013-11-27 Thread Andreas Hilboll
7;t have a matplotlibrc which changes these settings. So figure.dpi is 80, and the fig.size_inches is (8, 6). So how come this translates to a 800x600 pixel movie? Thanks for you insight :) -- Andreas. -- Rapidly troubleshoo

[Matplotlib-users] cpt-city colormaps for matplotlib

2013-04-24 Thread Andreas Hilboll
Hi, I'd like to have the cpt-city colormaps available in matplotlib. Is there already a module for this? If not, I'll try to patch something together. What do you think? Cheers, Andreas -- Try New Relic Now &a

[Matplotlib-users] Vertical alignment of AnchoredTexts in ImageGrid

2013-03-28 Thread Andreas Hilboll
y aligned: The baseline of the text with a *g* is higher to accomodate for the needed space below the baseline. How can I achieve that in my case, all texts are vertically aligned, given that the heights of the individual text boxes are different? Any help is greatly appreciated! Andreas ---

Re: [Matplotlib-users] Problems to plot more than 9 subplots

2013-02-19 Thread Andreas Hilboll
On 02/19/2013 01:52 PM, patricia wrote: > Thanks Andreas, > Yes I usually do the same, but in this case I am not managing to do it due > to the functions being used. It does not allow me to put (7,3, nfig) inside > the "xx = TaylorDiagram(refstd, fig=fig, rect=122, label="xx&

Re: [Matplotlib-users] Problems to plot more than 9 subplots

2013-02-19 Thread Andreas Hilboll
ys do ax = fig.add_subplot(7, 3, nfig) which works. (in list iterations, make sure nfig starts at 1). Andreas. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDy

[Matplotlib-users] interactively getting z-value on a pcolormesh

2013-02-01 Thread Andreas Hilboll
data variable at the point where the mouse cursor is. Any way I can get this information? Cheers, Andreas. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for

[Matplotlib-users] 3d surfaces in basemap?

2012-10-27 Thread Andreas Hilboll
greatly appreciated =) Cheers, Andreas. -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join

Re: [Matplotlib-users] Filling area with a color like in an integral

2012-10-16 Thread Andreas Hilboll
to do is the same as the green color in the linked picture. You can find an example in the matplotlib gallery (http://matplotlib.org/gallery.html): http://matplotlib.org/examples/pylab_examples/fill_between_demo.html The function you're looking for is ``fill_be

Re: [Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
>> > Hi, me again :) >> > >> > I'm looking for a way to have the xlabels on the top (instead of >> bottom), >> > and the ylabels on the right (instead of left). I guess I could do >> > something with twinx / twiny and just not use the left/bottom axis, >> but >> > I'm sure there is some more elegan

Re: [Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
> Hi, me again :) > > I'm looking for a way to have the xlabels on the top (instead of bottom), > and the ylabels on the right (instead of left). I guess I could do > something with twinx / twiny and just not use the left/bottom axis, but > I'm sure there is some more elegant way ... I need to cor

[Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
Hi, me again :) I'm looking for a way to have the xlabels on the top (instead of bottom), and the ylabels on the right (instead of left). I guess I could do something with twinx / twiny and just not use the left/bottom axis, but I'm sure there is some more elegant way ... Cheer

[Matplotlib-users] x-label location not at xtick location?

2012-10-12 Thread Andreas Hilboll
Hi, another question. Given the plot from my last email (I attached the code to this one as well), I would like to have the x-labels ("J", "F", ...) not at the location of the xticks, but centered in between to xticks. I would then move the xticks so that they form the bins to the data chunks, and

[Matplotlib-users] color pallette suggestions wanted

2012-10-12 Thread Andreas Hilboll
r and seismic color maps, centering on zero, so that white is 0.0. However, I'm not too happy with the dynamic range I get in the negative. Any suggestions are very welcome ... Cheers, Andreas.<>-- Don't let

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-08 Thread Andreas Hilboll
> Hello, > > Is there any collection of articles that shows academic articles using > matplotlib produced plots? I have come across a few recent articles in my > field with plots produced by matplotlib. Though, the mpl page shows some > nice examples of publication quality plots, it would be nice t

Re: [Matplotlib-users] Saving animations

2012-10-05 Thread Andreas Mueller
On 10/05/2012 02:49 AM, Ryan May wrote: > On Thu, Oct 4, 2012 at 12:38 PM, Andreas Mueller > wrote: >> On 10/04/2012 03:51 PM, Benjamin Root wrote: >> On Thu, Oct 4, 2012 at 10:02 AM, Andreas Mueller >> wrote: >>> Hi everybody. >>> I have been t

Re: [Matplotlib-users] Saving animations

2012-10-04 Thread Andreas Mueller
On 10/04/2012 03:51 PM, Benjamin Root wrote: On Thu, Oct 4, 2012 at 10:02 AM, Andreas Mueller mailto:amuel...@ais.uni-bonn.de>> wrote: Hi everybody. I have been trying to save some animations I made and I encountered the problem mentioned here <http://source

[Matplotlib-users] Saving animations

2012-10-04 Thread Andreas Mueller
Hi everybody. I have been trying to save some animations I made and I encountered the problem mentioned here . I am using current master.

Re: [Matplotlib-users] Placing a 'title' inside a legend

2012-07-27 Thread Andreas Hilboll
Hi Francesco, I'd like to place something like a 'title' inside a legend's box. In my specific case, I have a legend with 5 entries, arranged in 5 columns, so they're horizontally next to each other in one row. Now what I'd like to have is inside the legend's box

Re: [Matplotlib-users] Placing a 'title' inside a legend

2012-07-27 Thread Andreas Hilboll
> Hi Andreas, > > 2012/7/27 Andreas Hilboll : >> Hi, >> >> I'd like to place something like a 'title' inside a legend's box. In my >> specific case, I have a legend with 5 entries, arranged in 5 columns, so >> they're horizontall

Re: [Matplotlib-users] How to plot only a legend?

2012-07-27 Thread Andreas Hilboll
> On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote: >> > Hi Andreas, >> > >> > 2012/7/26 Andreas Hilboll : >> >> Hi, >> >> >> >> I would like to create a figure which only contains a legend, and no >> >&g

[Matplotlib-users] Placing a 'title' inside a legend

2012-07-27 Thread Andreas Hilboll
first row (above the legend entries), where I can write some text. Any ideas? Cheers, Andreas. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Andreas Hilboll
> Hi Andreas, > > 2012/7/26 Andreas Hilboll : >> Hi, >> >> I would like to create a figure which only contains a legend, and no >> axes >> at all. I would like to manually assign the colors. I found this here: >> >>http://stackoverflow.com/a/

[Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Andreas Hilboll
eatly appreciated :) Andreas. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions wi

Re: [Matplotlib-users] high resolution map image

2012-07-16 Thread Andreas Hilboll
> Hi all, > > I've to draw a plot in a very small area (about 1 degree of height/width) > with > a map image. > I've tried with the warpimage method and with the Nasa visible Earth > images > (http://visibleearth.nasa.gov/view_cat.php?categoryID=1484), but I've some > problems: > - with the resolut

Re: [Matplotlib-users] Dates interpretation on csv2rec

2012-06-29 Thread Andreas Hilboll
> Dear all, > > I have a CSV file with the first column with timestamps: > > 0:00:00 01/01/2007, 0.000, 10, 0.000, 10, > 0.000, 10: > 00:00:00 02/01/2007, 0.000, 10, 0.000, 10, > 0.000, 10 > 00:00:00 03/01/2007, 0.000, 10, 0.000, 1

Re: [Matplotlib-users] Pgf Backend with Xelatex support

2012-06-27 Thread Andreas Hilboll
> > Hi, > > When creating figures to be included in Latex documents I encountered a > few > problems. In the end the text rendering just doesn't blend in well, one > way > or another. I found that the problems can be fixed by using Xelatex, which > provides full unicode support and is able to use t

[Matplotlib-users] export colormap to GMT's CPT format

2012-06-19 Thread Andreas Hilboll
Hi, I have a `LinearSegmentedColormap` which I would like to export to GMT's CPT format. However, I couldn't find a way to get the RBG values of the `N` color slices of the colormap, which I need in order to create the CPT file. Any help is greatly appreciated. Cheer

[Matplotlib-users] Turning of ticks in matplotlibrc

2012-05-21 Thread Andreas Mueller
Hi everybody. I have been trying to turn off xticks and yticks and their labels in matplotlibrc. Ticks have an argument "tick1On" and "label1On" but it seems I can not use these in the config file. Is that correct? Is t

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
this simple in-or-out > partitioning, this approach might still work but I'm not sure, in that > case, that I understand what you're actually trying to do. Eric, I'm amazed -- thanks a lot :) Andreas. -

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am Di 28 Feb 2012 19:23:14 CET schrieb Eric Firing: > On 02/28/2012 08:08 AM, Andreas H. wrote: >> Am 28.02.2012 18:56, schrieb Eric Firing: >>> On 02/28/2012 06:28 AM, Andreas H. wrote: >>>>>> On Tuesday, February 28, 2012, Andreas H. wrote: >>>

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am 28.02.2012 18:56, schrieb Eric Firing: > On 02/28/2012 06:28 AM, Andreas H. wrote: >>>> On Tuesday, February 28, 2012, Andreas H. wrote: >>>> >>>>> Good morning, >>>>> >>>>> I'm creating the attached plot using pco

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
>> On Tuesday, February 28, 2012, Andreas H. wrote: >> >>> Good morning, >>> >>> I'm creating the attached plot using pcolormesh(). What I would like to >>> do now is draw contour lines at +/- 2.5%, which follow the grid edges. >>> &g

[Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
ve an idea how to draw the contour lines following the grid edges? Your insight is very much appreciated :) Cheers, Andreas. <>-- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive onli

Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-10 Thread Andreas H.
d produce more expected results. Cheers, Andreas. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be d

[Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Andreas H.
Hi, I'm trying to use pcolor on a masked array. I would like masked elements to show up in a special color. I have written some code, but it does not seem to work: I would appreciate any help :) Cheers, Andreas. ---8<--- import matplotlib as mpl import matplotlib.pyplot as plt fr

Re: [Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Andreas H.
[DU]") the subscript "strat" actually gets typeset in my OTF font, but the subset "3" gets typeset in the standard math font (the fonts Cmr10 and Cmss10 get embedded in the PDF file). This doesn't look nice, because I am using Myr

[Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Andreas H.
Hi, I would like to use .otf fonts for typesetting text (axes, titles, labels, legends, ...) in matplotlib. Is this possible? If yes, how? If not directly, perhaps via XeTeX? Cheers, Andreas. -- All the data

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Benjamin Root wrote: > On Sunday, September 25, 2011, Andreas Matthias > wrote: >> Paul Ivanov wrote: >> >>> On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias >>> wrote: >>>> Hmm. I do not get a reversed list of axes. T

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Paul Ivanov wrote: > On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias > wrote: >> Hmm. I do not get a reversed list of axes. This is the output of >> the example code below: >> >> [, > object at 0x8f633ec>] >> [, > object at 0x8f633ec>] > &

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-24 Thread Andreas Matthias
Paul Ivanov wrote: > On Fri, Sep 23, 2011 at 2:08 PM, Andreas Matthias > wrote: >> In the following example the coordinates of the mouse >> cursor displayed in the pylab window belong to the >> second y-axis. But I would prefer to have the coordinates >> of the fi

[Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-23 Thread Andreas Matthias
]) mpl.show() Ciao Andreas -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk

[Matplotlib-users] plotting masked arrays with plot_surface()

2011-09-22 Thread Andreas Matthias
I would like to plot a masked array with plot_surface(). But unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. How can I plot the masked array? Ciao Andreas import numpy as np import pylab as mpl from mpl_toolkits.mplot3d import axes3d x

[Matplotlib-users] Missing space in formatted output conversion

2011-09-18 Thread Andreas Matthias
#x27;text.usetex'] = True mpl.plot([1,3,2]) mpl.text(1, 2.0, '% .3f' % 1.234) mpl.text(1, 1.9, '% .3f' % -1.234) mpl.show() Ciao Andreas -- BlackBerry® DevCon Americas, Oct. 18-20, San

Re: [Matplotlib-users] Save or pickle pyplot object

2011-05-06 Thread Andreas Reisinger
Hi Ben, Thanks anyway for your answer! Aki Benjamin Root wrote: > > > On Tue, Mar 29, 2011 at 8:35 AM, Andreas Reisinger > mailto:andreas.reisin...@tuwien.ac.at>> > wrote: > > Hi! > > I would like to save a pyplot object as it is, including axes,

[Matplotlib-users] Save or pickle pyplot object

2011-04-08 Thread Andreas Reisinger
Hi! I would like to save a pyplot object as it is, including axes, lines, text, etc. into a file. When opening it again, I want to be able to add additional axes, lines and so on. Unfortunately pickle does not handle the pyplot object and gives me an error. Anyone knows a solution? All the be

[Matplotlib-users] Widgets on top of FigureCanvas

2011-04-02 Thread Andreas Matthias
doesn't work for FigureCanvas lay.put(canvas,0,0) Any help appreciated. Ciao Andreas import gtk import numpy as np import pylab as mpl from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas win = gtk.Window() win.set_default_size(450,350) fig = mpl.figure() s

Re: [Matplotlib-users] matplotlib1.0 via easy_install

2010-07-21 Thread Andreas
>> Hi there, >> >> I try to install matplotlib 1.0 via easy install. But a simple >> >> easy_install -U matplotlib >> >> produces this, effectively installing 0.99.1 >> >> Searching for matplotlib >> Reading http://pypi.python.org/simple/matplotlib/ >> Reading http://matplotlib.sourceforge.

[Matplotlib-users] matplotlib1.0 via easy_install

2010-07-21 Thread Andreas
Hi there, I try to install matplotlib 1.0 via easy install. But a simple easy_install -U matplotlib produces this, effectively installing 0.99.1 Searching for matplotlib Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading http://sou

[Matplotlib-users] hist() and masked_array

2010-06-17 Thread Andreas Hilboll
he 'normal' ndarray. So I would need to do something like try: data = data.compressed() except: pass hist(data) all the time ... Is there any easier solution? Cheers, Andreas. -- ThinkGeek and WIRED'

Re: [Matplotlib-users] Scatterplots with colorscale?

2010-05-21 Thread Andreas Hilboll
ly less visually messy to just plot the image Well, that's not an option. I once tried to create a 'normal' scatterplot of my data (it's a couple of million points), and that took a *long* time. Plus, it made me see a 700M pdf

[Matplotlib-users] Scatterplots with colorscale?

2010-05-21 Thread Andreas Hilboll
Hi there, the attached figure shows a scatterplot, where the colors indicate the density of measurement points. Is there any way to do this with matplotlib? Thanks for your insight, Andreas

[Matplotlib-users] Setting boundaries for a colorbar

2010-04-14 Thread Andreas Hilboll
ide the range, the returned value will be 0 or 1, whichever is closer. So my question is: What do I need to do so that the colorbar actually has the range as specified by my colorNorm? Thanks for your help, Andreas. <>-

[Matplotlib-users] Older Version of Matplotlib for Python 2.2.1

2010-03-04 Thread Schnappauf, Andreas
sources and had no success. Thx for any help! Greetings Andreas iSyst Intelligente Systeme GmbH Nordostpark 91 | 90411 Nuernberg Geschaeftsfuehrer: Prof. Dr.-Ing. Hans Rauch, Christine Rauch, Daniel Heinrich Sitz der Gesellschaft: Nuernberg Registergericht

Re: [Matplotlib-users] grid on log-plots

2009-09-08 Thread Andreas Fromm
, 100], label='host') host.grid(True) #? host.yaxis.grid(True) #? host.yaxis.set_scale('log') #? plt.draw() plt.show() ### Greets, Andreas Sebastian Busch schrieb: > from matplotlib.pyplot import * > > plot([1,10,100],[1,10,100]) > grid() > &

Re: [Matplotlib-users] preserving transparency in eps

2009-09-01 Thread Andreas Matthias
s not a matplotlib specific question so I will try > to find a solution somewhere else. Have a look at the LaTeX beamer package which produces PDF directly. Thus it's easy to include your PDF pictures without the need to convert them. http://latex-beamer.sourc