Re: [Matplotlib-users] pyplot.hexbin

2016-01-30 Thread Sebastian
ctor out the >> hexbinning component into its own hexbin.py that others might be able to >> use separately. >> >> Ben Root >> >> >> On Fri, Jan 29, 2016 at 5:15 PM, Sebastian wrote: >> >>> Is there a simple way to hexbin using "pyplot.h

[Matplotlib-users] pyplot.hexbin

2016-01-29 Thread Sebastian
Is there a simple way to hexbin using "pyplot.hexbin" and to return the ids of the set of points in each hexbin? That is to output an array of n elements (one for each hexbin), and each element itself an array with the point ids? The sum of the number of inner elements would be equal the sum of all

[Matplotlib-users] hexbin....matplotlib.collections.PolyCollection

2015-05-13 Thread Sebastian
]. vertices[idx[0],0]+half_width_x cy = paths[i].vertices[idx[2],1]+half_width_y centres.append((cx,cy)) return asarray(centres) best regards, - Sebastian -- One dashboard for servers and applications across Physical-Virtual-Cloud Wi

[Matplotlib-users] hexbin question

2015-05-01 Thread Sebastian
I can make a hexbin map for this using "matplotlib.pyplot.hexbin", with colorbar and colorbar label? with many thanks & happy labour day! - Sebastian -- One dashboard for servers and applications across Physic

[Matplotlib-users] Avoid circular references with format_coord and Qt?

2015-03-08 Thread Sebastian Berg
function to break the circle but it seems silly. Anyway, I do not expect that anyone can help, and I expect it is some Qt stuff really, but this is seriously annoying me - Sebastian signature.asc Description: This is a digitally signed message part

Re: [Matplotlib-users] Defaults?

2014-11-07 Thread Sebastian Berg
On Fr, 2014-11-07 at 16:15 +0100, Sebastian Berg wrote: > Hey, > > just something I was wondering about today. I commonly want to change > certain things about my plots. For example I like a serif/larger fonts, > and everyone knows that "jet" is an awful default c

[Matplotlib-users] Defaults?

2014-11-07 Thread Sebastian Berg
for uploaded RCs. Anyway, just rambling :), I am not planning to really think about it much. And maybe some things even exist and I am not aware of it. Regards, Sebastian signature.asc Description: This is a digi

[Matplotlib-users] Problem with "set_array" function

2012-11-08 Thread Sebastian Rhode
Hi guys, I have a problem with the "set_array" function. In a example from the matplotlib homepage this works fine, but when I tries to adaot to my needs, the image just stays the same. No Update, but also no error messages: see On Timer function --> the plot is just created during the start but

[Matplotlib-users] Plot data from file while is file is constantly updated

2012-11-08 Thread Sebastian Rhode
Hi, I have a textfile where every second a line is written. Usually the look like this: 1; 124; 455 a second later 1; 124; 455 2; 104; 600 ... Finally such a file is quite easy to plot using matplotlib. But what would be very useful for me is a script, that is watching the TXT file and update

Re: [Matplotlib-users] No clipping in svg mode

2012-03-20 Thread Sebastian Ohl
ng a bad renderer. i am now using inkscape to render my svg (not just for editing) and so far it do what i need it to do. -- Regards Sebastian Ohl -- Sebastian Ohl sebast...@ohl.name Kurzekampstr. 14 Tel +49 531 7998221 D-38104 Braunschweig

[Matplotlib-users] No clipping in svg mode

2012-03-19 Thread Sebastian Ohl
t.svg", format='svg', transparent=True) plt.savefig("test.png", format='png', transparent=True) -- Regards Sebastian Ohl -- Sebastian Ohl sebast...@ohl.name Kurzekampstr. 14 Tel +49 531 7998221 D-38104

[Matplotlib-users] Figure save hack

2012-03-15 Thread Sebastian Berg
does not work inside a 3D Axis, though I think its likely not difficult to change), I thought I would put it online because I am not aware of any way to save matplotlib figures: https://github.com/seberg/haunter-for-matplotlib-figures Maybe someone finds it useful or interesting :) Regards, Seba

Re: [Matplotlib-users] 1d plot of a discontinuous function

2011-09-30 Thread Sebastian Berg
en 0 is included s = np.sign(x) s[s==0] = np.nan y = s * np.cos(x) plt.plot(x, y) Regards, Sebastian > > -- > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a de

Re: [Matplotlib-users] working with ticklabels text in matplolib

2011-08-26 Thread Sebastian Berg
nstead of manipulating strings or setting the ticklabels by hand. IE: my_formatter = matplotlib.ticker.FormatStrFormatter('a%s') #etc... see http://matplotlib.sourceforge.net/api/ticker_api.html a = plt.gca() a.xaxis.set_major_formatter(my_formatter) plt.draw() Regards, Sebastian >

Re: [Matplotlib-users] How to create a square wave plot

2011-08-02 Thread sebastian
xactly this and has arguments for setting where the step is made, etc. Regards, Sebastian -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts.

Re: [Matplotlib-users] Decouple the colorbar form subplot

2011-07-11 Thread Sebastian Berg
r a way to not let the colorbar cut space from the 2nd subplot. I > would like to have them both the same size. > the subplot command only takes from the last axes as default. What you need to do (I think and I always do it like this) Define 3 sets of axes by hand instead of subplot

[Matplotlib-users] Savefig Question

2011-07-08 Thread Sebastian Rhode
Hi, I use the followng function for my application: def OnSaveAs(self, event): dlg = wx.FileDialog(self, 'Choose a Filename', os.getcwd(), '', '*.png*', wx.SAVE | wx.OVERWRITE_PROMPT) if dlg.ShowModal() == wx.ID_OK: savename = dlg.GetPath() self.page_graph.figure.s

Re: [Matplotlib-users] fill-between special demand

2011-06-10 Thread Sebastian Berg
ibility... > > I hope a made myself clear enough...and hopefully you can help me. > > /Johannes Hi, use numpy to calculate the upper and lower limits first? curves = np.random.randn(1000, 10) plt.fill_between(np.arange(1000), curves.min(1), curves.max(1)) of course if the x values ar eno

[Matplotlib-users] Asymmetrical arrangements of subplots

2011-05-04 Thread Sebastian Krieger
lignment','center') Reference:http://www.mathworks.com/help/techdoc/ref/subplot.html Is it possible in matplotlib? Cheers, Sebastian -- *Sebastian Krieger, M.Sc.* Laboratório de Oceanografia por Satélites Instituto Oceanográfico -- Universidade de São Paulo Praça do Oceanográfico

Re: [Matplotlib-users] Date format the x-axis of a barh() plot?

2011-04-18 Thread Sebastian Berg
Hello, don't know the foo behind it, but using ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d %H:%M:%S')) works. Regards, Sebastian On Sun, 2011-04-17 at 19:52 -0700, jfortiv wrote: > Hello, > > I'm trying to create a bar chart that looks

Re: [Matplotlib-users] Pixel shape

2011-04-18 Thread Sebastian Berg
ost me the link of the guide of this setting? > Thanks! > > > Il 16/04/2011 10:47, Sebastian Berg ha scritto: > > Hello, > > > > check the help ;). you can set aspect='auto' or something fixed. > > > > Regards, > > > > Sebastian > > >

Re: [Matplotlib-users] Pixel shape

2011-04-16 Thread Sebastian Berg
Hello, check the help ;). you can set aspect='auto' or something fixed. Regards, Sebastian On Sat, 2011-04-16 at 10:43 +0200, Paolo Zaffino wrote: > Hi at all, > I have a numpy matrix (an image) and I'd like to show it. > I thought to use show function, but I have a

Re: [Matplotlib-users] Errorbar stays behind data

2011-04-11 Thread Sebastian Berg
Hey, not sure about which values are good to use (there is an example in the gallery about it), but do the first plot command for example with zorder=1 keyword argument, and the errorbar with zorder=2, and voila you got what you want. Regards, Sebastian On Mon, 2011-04-11 at 14:49 +0200

Re: [Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
Hey, thanks a bunch, that was the problem, build it a while back, really should have seen that back then though ;). Regrads, Sebastian On Fri, 2011-04-08 at 08:14 -0400, Michael Droettboom wrote: > Can you provide the output of a clean build? > > Go to the source directory, remove t

Re: [Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
Sorry, I mean of course, that the example already fails for me with this error... On Fri, 2011-04-08 at 14:49 +0200, Sebastian Berg wrote: > Hey, > > I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped > with ubuntu. I have the problem that the GTK

[Matplotlib-users] GTKAgg backend problem

2011-04-08 Thread Sebastian Berg
No module named _backend_gdk Is this a problem with the version or my installation and how would I fix it (or do I need to downgrade again!?). Regards Sebastian Berg -- Xperia(TM) PLAY It's a major breakthroug

[Matplotlib-users] clabel like labels for normal line plots

2011-03-12 Thread Sebastian Berg
for usual lines too? Regards, Sebastian -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d

[Matplotlib-users] make plot() cycle through line style instead of colour

2011-02-15 Thread Sebastian Busch
omatically/ '-', '--', '-.', ...? Thanks in advance, Sebastian. signature.asc Description: OpenPGP digital signature -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pin

Re: [Matplotlib-users] Py2exe missing buttons icons on navigation toolbar

2011-02-06 Thread Sebastian Voigt
oking into PACKAGEPATH/matplotlib/backends/backend_qt4.py line 399 and below. Another approach would be to directly rename the files in NavigationToolbar2QT._init_toolbar() to *.png since matplotlib provides png and svg files for every icon. Greetings, Sebastian Am 06.02.2011 11:20, schri

[Matplotlib-users] mplot3d: disable z-sorting?

2011-01-05 Thread Sebastian Voigt
gets messed up after showing the plot window. So is there any way to create the bars just in the order of the data vectors passed to bar3d (or keep the order/zorder in axes.collections)? - Sebastian Voigt - -- L

Re: [Matplotlib-users] ellipk

2010-10-09 Thread Sebastian Busch
rder to access ellipk. good luck :) sebastian. signature.asc Description: OpenPGP digital signature -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, a

Re: [Matplotlib-users] ellipk

2010-10-08 Thread Sebastian Busch
hey pau, ellipk is in scipy.special: #!/usr/bin/env python from pylab import * from scipy.special import ellipk e=1. a_mpc = 4.0 p = a_mpc * (1 - e**2.) Phase = 4.*sqrt(p/(p -6. - 2.*e)) * ellipk(-4.*e/(p - 6. -2.*e)) greetings, sebastian. signature.asc Description: OpenPGP digital

[Matplotlib-users] Missing Toolbar Button inside Wx Application

2010-09-29 Thread Sebastian Rhode
self.toolbar.Realize() self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) self.toolbar.Show() self.SetSizer(self.sizer) self.Fit() ... -- Dr. Sebastian Rhode Grünwalder Str. 103a 81547 München Tel: +49 89 4703091 Mobil: +49 15122810945

[Matplotlib-users] Show pixelated image using imshow

2010-02-25 Thread Sebastian Rhode
Hi, I would like to show an image using the imshow function. Thsi is quite trivial, but what I acn not figure out so far, is how to display the image without any interpolation. For my application it is useful to really see the individaul pixel and the borders between them. Setting interpolation=No

[Matplotlib-users] Display Pixel intensity

2010-02-23 Thread Sebastian Rhode
Hi, has anyone a good idea how to interactively display the xy coordintes (as whole numbers) and the pixel intensity using the mouse cursor. Here is the code snippet: ... fig = plt.figure() ax1 = fig.add_subplot(111) channel_select = 1 p = imread(filename) # normally I use TIFF file if (p.ndim >

Re: [Matplotlib-users] How do you use ticklabel_format?

2010-02-03 Thread Sebastian Busch
g') from matplotlib.ticker import ScalarFormatter ax = gca().xaxis ax.set_major_formatter(ScalarFormatter()) best, sebastian. signature.asc Description: OpenPGP digital signature -- The Planet: dedicated and mana

Re: [Matplotlib-users] Problem using TeX

2010-01-29 Thread Sebastian Busch
s all, no plot window appears, the script is finished. you did not show() ! best, sebastian. signature.asc Description: OpenPGP digital signature -- The Planet: dedicated and managed hosting, cloud storage, colocation S

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Sebastian Busch
e 10^5 IS a mathtext. i've therefore made a class MyLogFormatterMathtext which outputs the labels very ugly but as normal text. i hope that something along these lines can help you, i was using pstoedit a lot to see whether the text is recognized as text or no

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-20 Thread Sebastian Busch
j in cb.ax.get_yticklabels(): >print(j) > # > > results in: > > Text(0,0,'') > ... I think you have to pyplot.show() or pyplot.savefig("deleteme.ps") in order to have the ticklabels p

[Matplotlib-users] Problem with updating the plot

2009-12-09 Thread Sebastian Rhode
as soon as I check the check item, the graph is not updated right away If I select show405 first, I see nothing, but if I open a dataset afterwards with openls, both graphs are shown. So the graph from show405 must be somewhere ... Thanks for your help. Cheers, Sebi ---

[Matplotlib-users] Beginner Problem with drawing

2009-12-04 Thread Sebastian Rhode
x) ex = normspec_filter(ex) self.gex, = self.axes.plot(ex[:,0],ex[:,1],'b', lw=2,label = mypathex) #self.axes.plot(ex[:,0],ex[:,1],'b', lw=2,label = mypathex) self.axes.axis([xmin,xmax,ymin,ymax]) self.axes.legend(l

Re: [Matplotlib-users] range for log scale

2009-09-20 Thread Sebastian Busch
Janwillem van Dijk wrote: > Is it possible to have in Matplotlib.pyplot a log (base 10) scale that > does go from xmin to xmax where xmin and xmax are not powers of 10 ... yes. best regards, sebastian. signature.asc Description: OpenPGP digital sig

[Matplotlib-users] Documentation

2009-09-11 Thread Sebastian Pająk
Hi Where can I download current mpl documentation in HTML format? Because there is now way to build it under win32 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your repor

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

2009-09-07 Thread Sebastian Busch
jihi wrote: > ... can anybody tell me how to get gridlines in a logarithmic plot? ... from matplotlib.pyplot import * plot([1,10,100],[1,10,100]) grid() yscale('log') xscale('log') works here. best, sebastian. signature.asc Description: Op

[Matplotlib-users] Delete Line & legend from graph using matplotlib & wxPython

2009-09-02 Thread Sebastian Rhode
good ides how to achieve this? Cheers, Sebi -- Dr. Sebastian Rhode Grünwalder Str. 103a 81547 München Tel: +49 89 4703091 sebrh...@googlemail.com -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Da

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Sebastian Pająk
I had similar problem try hi-res png images at 300dpi w/o transparency (ms cannot handle transp. png correctly). ms word shows png little blury, but after printing (to PDF for example) images are sharp as knife 2009/9/2 Shixin Zeng : > OK, > > I'm attaching a file that converts svg to emf, which

[Matplotlib-users] After update to 0.99.0 - mpl doesn't work

2009-08-29 Thread Sebastian Pająk
Hi When I try to import anything from mpl, Python's interpreter exits without any error. This happens after the 0.99.0 upgrade. This is example session: d:\>python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license"

Re: [Matplotlib-users] how to generate one plot per key press?

2009-08-23 Thread Sebastian Busch
th ipython -pylab both versions work here. good luck, sebastian. signature.asc Description: OpenPGP digital signature -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your

[Matplotlib-users] "import pylab" changes locale settings

2009-08-16 Thread Sebastian
;: ',', 'int_frac_digits': 2, 'p_sep_by_space': 1, 'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn': 1, 'decimal_point': ',', 'int_curr_symbol': 'EUR ', 'n_cs_precede

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
finally... Sebastian Busch wrote: > ... > it does not crash (the version with '\\' does) but does not produce a > line break, either... text(0.5, 0.5, 'a \n b') works. signature.asc Descripti

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
pyplot import * text(0.5, 0.5, r'a \newline{} b') savefig('test.eps') it does not crash (the version with '\\' does) but does not produce a line break, either... best, sebastian. signature.asc Description: OpenPGP digital signature --

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
enlohner (eTeX)/Han The Thanh (pdfTeX). Kpathsea written by Karl Berry, Olaf Weber, and others. Compiled with libpng 1.2.27; using libpng 1.2.27 Compiled with zlib 1.2.3.3; using zlib 1.2.3.3 Compiled with libpoppler version 0.10.5 could the OP perhaps post some more information? sebastian. signa

Re: [Matplotlib-users] pylab

2009-08-11 Thread Sebastian Haase
Thanks for the info -- very informative -- maybe this post could be somehow added or linked to from http://www.scipy.org/PyLab -- Sebastian Haase On Tue, Aug 11, 2009 at 4:22 AM, Eric Firing wrote: > marc desmarais wrote: >> Are there still two pylabs?  Are the following two web pages

[Matplotlib-users] ImportError: No module named _backend_gdk

2009-07-30 Thread Sebastian Pająk
Hello I don't know why, but after switching from python2.5 to python2.6 I cannot even launch matplotlib (matplotlib-0.98.5.3.win32-py2.6.exe). This is what I get: Traceback (most recent call last): File "", line 1, in File "D:\msys\opt\python\lib\site-packages\pylab.py", line 1, in from

Re: [Matplotlib-users] Backend Comparison

2009-07-12 Thread Sebastian Haase
ponsiveness !? (E.g. I thought that wx was much faster than wxAgg ... just uglier ) - Sebastian Haase -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors

Re: [Matplotlib-users] histograms : xmax

2009-07-09 Thread Sebastian Busch
9.96e-02 > So the maximum should be 0.0996 and I am getting 9 if you pass only the third column to hist, it is a bit unfair to expect it to know the other two ;) good luck, sebastian. signature.asc Description: OpenPGP digital signature ---

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
y, align='center') show() main difference is swapping of x and y append(..): if something goes wrong width y, it won't do x and therefore both will have the same length in the end (i think it was

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
Pau wrote: > ... > 2009/7/5 Gökhan SEVER : >> On Sun, Jul 5, 2009 at 3:41 PM, Pau wrote: >>> ... >>> Traceback (most recent call last): >>> File "./prova.py", line 14, in >>>y.append(int(line.split('(')[1].split(')

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
ines() f.close() x, y, dy = [], [], [] for i, line in enumerate(data): x.append(i) y.append(int(line.split('(')[1].split(')')[0])) dy.append(sqrt(y[-1])) bar(x, y, yerr=dy, align='center') sh

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread Sebastian Haase
On Tue, Jun 16, 2009 at 10:39 PM, John Hunter wrote: > On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase > wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John > Hunter wrote: > >> Is there a similar function (to im.set_array) for graph plots ? > > for lines you would use

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread Sebastian Haase
but gets sluggish after several iterations: > > Use im.set_array rather than making multiple calls to imshow.  See the > "dynamic_image*" examples at > > http://matplotlib.sourceforge.net/examples/animation/index.html > Is there a simila

[Matplotlib-users] xlabels / ylabels as (non-math) text for pstoedit

2009-06-14 Thread Sebastian Busch
that I am not aware of the drawbacks of OldScalarFormatter, but alone the name makes me think that it might be not the best solution... Thanks and best regards, Sebastian. P.S.: why actually does ax.yaxis.get_ticklabels()[1].get_text() return an empty string when called before savefig? P.P.S.: I expe

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Sebastian Haase
On Fri, Jun 12, 2009 at 2:01 PM, John Hunter wrote: > On Fri, Jun 12, 2009 at 6:10 AM, Sebastian Haase wrote: >> On Fri, Jun 12, 2009 at 11:21 AM, Matthias >> Michler wrote: >>> Hi Sebastian, >>> >>> You are right. A large number of numpy functions i

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Sebastian Haase
On Fri, Jun 12, 2009 at 11:21 AM, Matthias Michler wrote: > Hi Sebastian, > > You are right. A large number of numpy functions is part of pylab, but I think > this problem was solved by introducing matplotlib.pyplot, which holds all > plotting functions of matplotlib. The modul

[Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Sebastian Haase
did not work, but they might still illustrate what I want to do -- now I have this code in a separate module that I can import as "P" This way I get: >>> len(P.__dict__) 395 >>> numpy.__version__ '1.3.0' So why are there still that many -- more than half ! --

Re: [Matplotlib-users] matplotlibrc customizing

2009-06-09 Thread Sebastian Busch
as a comment. Does it work when you remove the #? Best, Sebastian. signature.asc Description: OpenPGP digital signature -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified lice

Re: [Matplotlib-users] Beginning Python Visualization??

2009-06-08 Thread Sebastian Busch
t3D however, the mayavi "mlab" interface was designed explicitly to be as simple as pylab. http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html have fun 3D plotting, sebastian. signature.asc Description

Re: [Matplotlib-users] one data set, two y axis scales

2009-06-06 Thread Sebastian Busch
script with an additional ax1.set_yscale('log') ax2.set_yscale('log') and the ticks seem to be messed up. I used 'ipython -pylab' with matplotlib.__version__ '0.98.3'. Is there something I can do to get the ticks only at the places i would l

[Matplotlib-users] speed of "simple plots" (using wx)

2009-06-03 Thread Sebastian Haase
e plotting would make it completely unresponsive (plt worked again very fast -- super ugly, but fast ;-) ) Is there a special way to update plots very fast, i.e. faster than clr();plot(...) ? Regards, Sebastian Haase --

Re: [Matplotlib-users] EMF export doesn't work

2009-05-22 Thread Sebastian Busch
mputer-corner/latex/ ). and at least when exporting pdf files, they are in a vector format. best, sebastian. signature.asc Description: OpenPGP digital signature -- Register Now for Creativity and Technology (CaT), June 3r

Re: [Matplotlib-users] EMF export doesn't work

2009-05-19 Thread Sebastian Busch
mf file i cannot tell. best, sebastian. signature.asc Description: OpenPGP digital signature -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimi

Re: [Matplotlib-users] contour overlapping

2009-05-14 Thread Sebastian Busch
Armin Moser wrote: > Sebastian Busch wrote: >> ... >> array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])]) > It seems that I did not understand what you tried to reach. > ... Sorry. I wanted to do the same as Matthias -- taking his example: = from sci

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Sebastian Busch
st(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])]) best, sebastian. p.s.: i think it would be a nice feature to put "matplotlib-users@lists.sourceforge.net" as reply-to in the mails distributed via the list -- i keep hitting the 'reply'-button and wonder why my mails do n

Re: [Matplotlib-users] problem with usetex & \color

2009-05-12 Thread Sebastian Busch
Hey Matthias! Thanks for working on that! Matthias Michler wrote: > ... I'm not sure that following problem also occurs for Sebastian, ... it does. > ... PS-backend ... the upper part of the b is somehow hidden ... > f.text(0.5, 0.5, r"{\color[rgb]{0,1,0} a } b {\color{bl

Re: [Matplotlib-users] problem with usetex & \color

2009-05-12 Thread Sebastian Busch
as smaller than 10 as spaceholder (I do not want to use a monospaced font). Obviously, this doesn't work any more as soon as you reach 20... Thanks again for the help -- I'm happy for the moment, but if you (or someone else) can show me how to align the legend, it would be

[Matplotlib-users] problem with usetex & \color

2009-05-10 Thread Sebastian Busch
rectory ~/.matplotlib/tex.cache/ the text is green, both in the dvi and the png file! It therefore seems to me that this is not completely hopeless but I cannot figure out how to proceed. Can someone help? Thanks & best regards, Sebastian. I am on Linux macbook 2.6.27-11-generic #1 SMP Wed A

Re: [Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
OK works. I didn't notice the ticks arg. Thanks again Sebastian 2009/5/7 Jae-Joon Lee : > http://matplotlib.sourceforge.net/api/figure_api.html?highlight=colorbar#matplotlib.figure.Figure.colorbar > > cbar = colorbar(ticks=lev, format = l_f) > > -JJ > > > O

[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get colorbar in l

[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-06 Thread Sebastian Pająk
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get colorbar in l

Re: [Matplotlib-users] Equal decades on loglog axes

2009-05-06 Thread Sebastian Pająk
Thanks a lot!. I don't understand it but It works now as it should. 2009/5/6 Jae-Joon Lee : > On Wed, May 6, 2009 at 9:49 AM, Sebastian Pająk wrote: >> Hello >> >> How can I set decade on log x axis to be equal length to decade on log >> y axis (physically)? >

[Matplotlib-users] Equal decades on loglog axes

2009-05-06 Thread Sebastian Pająk
Hello How can I set decade on log x axis to be equal length to decade on log y axis (physically)? If I make: ax.set_xscale("log") ax.set_yscale("log") ax.set_aspect(1) I get it all wrong, the units are equal, not decades!! I need the same effect as I get in Gnuplot - the square decades: set l

Re: [Matplotlib-users] Common ylabel for subplots

2009-03-12 Thread Sebastian Krieger
False) bx.set_ylabel('This is a long label shared among more axes', fontsize=14) cx.set_xlabel('And a shared x label', fontsize=14) Cheers, Sebastian Gökhan SEVER wrote: Hello Sebastian, Not sure I could create a same-axes ylabels subplots similar to the one that is shown on the g

Re: [Matplotlib-users] Common ylabel for subplots

2009-03-11 Thread Sebastian Krieger
t_xticklabels(), visible=False) pylab.setp(bx.get_xticklabels(), visible=False) pylab.setp(bx.get_yticklabels(), visible=False) pylab.setp(dx.get_yticklabels(), visible=False) You can make the subplots come closer by changing the /wspace/ and /hspace/ entries in the /adjustprops/ dictionary. Cheers,

[Matplotlib-users] no plot figures on Solaris with TkAgg

2008-07-02 Thread Sebastian Hauer
/fontManager.cache numerix numpy 1.1.0 backend TkAgg version 8.5 Any help is appreciated, Sebastian - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source

[Matplotlib-users] Horizontal aligned legend

2008-07-01 Thread Sebastian Krieger
Hi folks! I was wondering if it's possible to have legends that are horizontaly aligned instead of verticaly? Thanks in advance. Sebastian - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies

[Matplotlib-users] Robinson projection imshow out of bounds and different latitude limits

2008-05-30 Thread Sebastian Krieger
thetically I find it more appealing if I could limit my map boundaries to these limits, or even lower limits if I zoom the equatorial region. Has anyone ever tried to do this? Thank's in advance and kind regards, Sebastian ---

[Matplotlib-users] Hovmoller plots

2007-08-22 Thread Sebastian Krieger
Hi, Does anyone eventually have a sample on how to make Hovmoller plots using matplotlib? Specially with good looking time axis like Ferret does? Thanks Sebastian - This SF.net email is sponsored by: Splunk Inc. Still

Re: [Matplotlib-users] [Numpy-discussion] rant against from numpy import * / from pylab import *

2007-08-02 Thread Sebastian Haase
ith __version__ = '0.90.0' __revision__ = '$Revision: 3003 $' __date__ = '$Date: 2007-02-06 22:24:06 -0500 (Tue, 06 Feb 2007) $' Any hint how to further reduce the number of names in "P" ? My ideal would be that the "P" module (short for pylab)

[Matplotlib-users] caxis in matplotlib / basemap

2007-05-09 Thread Sebastian Krieger
Hi everybody! I've just started using Python and matplotlib & basemap in order to continue using Matlab. I want to make some sea surface height anomaly plots and could find out how to define the color limits equivalent to caxis in Matlab. Can anyone help me? Thanks

[Matplotlib-users] Plotting boxplot

2007-03-15 Thread Sebastian Bassi
Hello, I tried to use the boxplot_demo.py [1] as a base for doing my own boxplot, but I couldn't :( My data is here: http://www.bioinformatica.info/seba/toplot.txt.gz The main problem I see is that the data in the sample is fake (random generated) and I don't know how to put real data in it (as th

Re: [Matplotlib-users] How to clean memory after plots ?

2006-12-21 Thread Sebastian Busch
how() In [10]: def f(x): : return x*x : In [11]: plot f(array(range(10))) ---> plot(f(array(range(10 Out[11]: [] In [12]: show ---> show() works here... sebastian. - Take Surveys. Earn