Viewrendered can display ggplot Graphs In @pyplot Nodes

14 views
Skip to first unread message

tbp1...@gmail.com

unread,
Sep 28, 2021, 10:53:52 AM9/28/21
to leo-editor
Viewrendered will display an @pyplot node in the rendering pane.  The node must contain correct matplotlib.pyplot code for this to work.  The rendering pane displays your graph complete with the interactive controls.

ggplot is a very nice plotting package that uses pyplot behind the scenes.  It turns out that VR can display @pyplot nodes that contain ggplot code as well.  Ifgp is the name of your figure, just end the code with 

gp.draw(return_ggplot=False, show=False)

There is no need to save the figure.

@pyplot  doesn't work in VR3 as yet.  That will be Coming Soon.

tbp1...@gmail.com

unread,
Sep 28, 2021, 11:02:17 AM9/28/21
to leo-editor
Just to be clear, I'm talking about the python version of ggplot, which is installed and imported as plotnine.
Reply all
Reply to author
Forward
0 new messages