orbingol / NURBS-Python

Object-oriented pure Python B-Spline and NURBS library
https://onurraufbingol.com/NURBS-Python/
MIT License
603 stars 153 forks source link

How to reuse the matplotlib figure #142

Open bizerfr opened 2 years ago

bizerfr commented 2 years ago

HI,

I use geomdl to plot multiple nurbs surfaces. And I also need to plot corresponding point clouds. I want to put them in the same figure. How to do it?
Beaver12LY commented 2 years ago

I have the same question.

orbingol commented 2 years ago

Currently, the visualization modules are not returning the matplotlib figure, so I don't think it is possible with the included visualization modules. However, you could write your own visualization module with a minor change, e.g. add convert fig variable to self.fig, so that you should be able to access the MPL figure object directly from the visualization class instance.