Re: matplolib inside [was Re: jupyter …]

Giovanni Piredda <[email protected]> Thu, 24 Oct 2024 18:37:27 +0000
Newsgroups gmane.editors.texmacs.user
Message-ID <[email protected]>
On 24/10/24 13:45, vincent douce wrote:
>
>
> hello
> here a matplotlib that works and the picture appears inside the tm 
> document (file matplotlib-texmacs.tm)
> and a matplotlib that does not appear at all (file TP3)
> i can’t manage to understand why
> Vincent
>

I also do not understand why

This said, try

def trace2(self):
         fig,ax=plt.subplots()
         ax.plot(self.x,self.y)
         ax.set_aspect(1)
         plt.show
         return(ps_out(fig))