hi, try this. It is simpler then some of the examples:
import pylab
# func - list of X, Y coordinates
func = [ 0, 0, 1, 2, 2, 3, 3, 2, 4, 1, 5, 1.4, ]
#
pylab.plot(func[0::2], func[1::2], 'b-', linewidth=3)
pylab.title(' Plot for function ...')
pylab.xlabel(' X name ')
pylab.ylabel(' Y name ' )
p
Thanks alot for your help, I could show the plot on the screen on python 2.4
.
I've used pyhton 2.3 .
Eric Firing wrote:
>
> sa6113 wrote:
>> How should I darw and show a plot using Backend Agg , I don't want to
>> save
>> figure , just show ?
>
> If you don't want to save a figure, then you w
sa6113 wrote:
> My OS is win XP and I run my program from command prompt and IDLE both , and
> there isn't any error.
> I can save the plot with (savefig) but the show() command dose not work and
> I can't see the plot on my screen and also I want to use Backend Agg insted
> of pylab.
1) Using the
My OS is win XP and I run my program from command prompt and IDLE both , and
there isn't any error.
I can save the plot with (savefig) but the show() command dose not work and
I can't see the plot on my screen and also I want to use Backend Agg insted
of pylab.
Darren Dale-2 wrote:
>
> On Sunda
On Sunday 17 February 2008 4:32:39 am sa6113 wrote:
> Thanks for your help
> I use the code below , but the plot wont be diplayed on my screen .
>
> matplotlib.use('TkAgg')
> import matplotlib.pylab as plt
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.plot(x, y, marker='o', linestyle='', ma
Thanks for your help
I use the code below , but the plot wont be diplayed on my screen .
matplotlib.use('TkAgg')
import matplotlib.pylab as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y, marker='o', linestyle='', markerfacecolor='green')
ax.set_title('Some random dots')
ax.se
sa6113 wrote:
> How should I darw and show a plot using Backend Agg , I don't want to save
> figure , just show ?
If you don't want to save a figure, then you will need an interactive
backend--not Agg, but TkAgg or GtkAgg etc. Then you end your script
with "show()" (imported from pylab or matpl
How should I darw and show a plot using Backend Agg , I don't want to save
figure , just show ?
--
View this message in context:
http://www.nabble.com/Backend-Agg---show-plot-tp15527044p15527044.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
-