convexengineering / gpfit

Fit posynomials to data
http://gpfit.readthedocs.io/en/latest/
MIT License
10 stars 7 forks source link

Issue with plot functionality (or tutorial documentation) #111

Closed blakecole closed 1 year ago

blakecole commented 2 years ago

The GPFit Tutorial documentation specifies:

Once a fit is generated, we can plot it:

fig, ax = f.plot() # for 1D fits fig, ax = f.plot_slices() # for 2D fits fig, ax = f.plot_surface() # for 2D fits

When I append this code to Example 1, the program executes to completion (with no stated errors), but no figure appears.

whoburg commented 2 years ago

Hi @blakecole, have you tried running fig.show() to get the figure to appear? Might be an easy fix.

blakecole commented 1 year ago

I am mortified, but I believe this was indeed the issue. Thanks!

whoburg commented 1 year ago

ha, no prob! glad that worked.