[Matplotlib-users] Plot line/Line2D with edgecolor

2012-06-27 Thread Daniel Platz
Hello, I would like to plot a simple line using plt.plot(x, y, ‘w--’, lw=2) or with the corresponding axes instance ax.plot(x, y, ‘w--’, lw=2). However, I want the line to have a thin black edge like the edge of a marker. Is this possible? I tried to find a property of the Line2D object but I coul

[Matplotlib-users] controlling padding between axis and ticklabels in polar plots

2010-04-13 Thread Daniel Platz
Hello, I have a question concerning the label positions of x- or y-ticks. My problem is that I want to make a polar plot with ticklabels. To generate such a plot you can use the following simple example script. # # import numpy as np import matplotl

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-25 Thread Daniel Platz
Jae-Joon Lee wrote: > On Fri, Aug 21, 2009 at 10:01 AM, Scott > Sinclair wrote: >>> I just realized that I did not give the correct plot object when creating >>> the colorbar. Now it works perfectly to pass arguments by set_xticklabels(). >>> >>> However, another question just arose. To format the

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Daniel Platz
=0.00, ticks=[-np.pi, -np.pi/2, 0.0, np.pi/2, np.pi]) cb4.ax.set_xticklabels([r'$-\pi$', r'$-\frac{\pi}{2}$', r'$0$', r'$\frac{\pi}{2}$', r'$\pi$'],fontsize=10) Daniel Jouni K. Seppänen wrote: > Daniel Platz writes: > >> t

[Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Daniel Platz
Hello, I would like to have some custom ticklabels on a colorbar. In detail, I want the four labels '-\pi', -\pi/2', '0', \pi/2', \pi'. I tried to set manually each text object obtained from cb.ax.get_xticklabels(): t = cb4.ax.get_xticklabels() for j in t: j.set_text(r'$\pi$')

[Matplotlib-users] matplotlib and wing ide

2009-07-24 Thread Daniel Platz
Hello, I am looking for a way to get interactive plotting in wing ide to run (preferably matplotlib). I have tried to thread the show() method of matplotlib with a Timer from the threading module. This was suggested in the wingware how-tos pdf. Unfortunately, it does not work for me. The show() me

[Matplotlib-users] Fast plotting of many data points in Python?

2009-07-11 Thread Daniel Platz
Hi, I am programming a oscilloscope module in Python. For this reason, I want to plot very many data points as fast as possible. This can be more than 100 000 at once. So far I have been using the ploting module of wxPython. However, it becomes unstable for more than 25000 points. Can someone reco