I have been using matplotlib and never seen this. What version of 
web2py/python/matplotlib?

On Friday, 5 April 2013 05:06:23 UTC-5, software.ted wrote:
>
> I have this code:
>
> import matplotlib
> matplotlib.use('Agg')
> import matplotlib.pyplot as plt
>
> ## Graphs
> fig = plt.figure(1, figsize=(6,6))
> ax = fig.add_axes([0.1,0.1,0.8,0.8])
>
> labels = 'Female', 'Male'
>
> fracs = [90,10]
> explode=(0,0.05,0,0)
>
> ax.pie(fracs, labels=labels, autopct='%1.1f%%', shadow=True)
>
> fig.savefig('test.png')
>
>
> in web2py the generated image keeps being update, when i change the fracs 
> the image is not recreated but its just update adding new sectors and 
> percentages. But the same code run on the command line when rerun it 
> recreates the image anew with new sector percentage...this is weired 
> behaviour, is there anything am missing out or i shoudl do in web2py
>
> This is how the image is being updated in web2py:
>
> [image: Inline image 1] 
> -- 
>
> .......................................................................................
> Teddy Lubasi Nyambe
> Opensource Zambia
> Lusaka, ZAMBIA
>
> Cell: +260 97 7760473
> website: http://www.opensource.org.zm
>
> ~/
> Human Knowledge belongs to the world! - AntiTrust
>
> Man is a tool-using animal. Without tools he is nothing, with tools he is 
> all - Thomas Carlyle 1795-1881
>
> /~ 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to