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
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
].
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
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
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
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
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
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
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
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
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
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
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
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
>
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.
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
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
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
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
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
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
> >
>
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
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
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
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
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
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
omatically/ '-', '--', '-.', ...?
Thanks in advance,
Sebastian.
signature.asc
Description: OpenPGP digital signature
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pin
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
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
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
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
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
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
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 >
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
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
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
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
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
---
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
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
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
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
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
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
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"
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
;: ',', '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
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
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
--
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
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
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
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
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
---
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
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(')
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
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
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
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
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
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
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 ! --
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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)?
>
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
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
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,
/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
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
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
---
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
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)
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
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
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
91 matches
Mail list logo