Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Level I

Python Get Graphics not working (from JMP Pro 15)

I get the following error when I run the code from the scripting index.

"Python Get Graphics()"is not supported yet. in acces or evaluation of 'python Get Graphics', Python Get Graphics.


The Python code works (only when you run it in a Python window).

Just the Get Graphics does not work.

Names Default To Here( 1 );
Python Init();
ml = Python Submit(
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')

plot = Python Get Graphics(png );
pngJMP = New Window( "Plot", Picture Box( plot ) );
//pngJMP << Close Window;
// Need this command to close the figure generated from Python
Python Submit( "plt.close()" );
Python Term();

Does anyone else has seen this error. Would could I do to solve it?







Re: Python Get Graphics not working (from JMP Pro 15)

Unfortunately, there is nothing you can do.  The message, "Python Get Graphics()"is not supported yet., is accurate for this build.  I am now looking at enabling this code.  It is possible that this functioned in an early JMP 14.  This code was one of the casualties of trying to stabilize the Python Init() process and get Python itself working for the majority of JMP users.


Re: Python Get Graphics not working (from JMP Pro 15)

This is now fixed in a future maintenance release of JMP 15.  It is too late to make it into the upcoming 15.1 maintenance release.  


Once the fix is available, your Python installation must have both PyQt5 and matplotlib in addition to all the currently required modules - numpy, pandas, scipy, sqlite3. 

Article Labels

    There are no labels assigned to this post.