.. py:module:: plot_canvas The class PlotCanvas ==================== The class :py:class:`PlotCanvas` is a canvas on which it is possible to visualize graphics with matplotlib.pyplot. .. py:class:: PlotCanvas() Inherits from the class :py:class:`matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg` .. rubric:: Instance attribute .. py:attribute:: fig The figure where the image is rendered .. py:attribute:: nplots The number of subplots of the figure (1 or 2 depending on if the histogram is shown) .. py:attribute:: ax One subplot or array of 2 subplots of the figure .. rubric:: Instance methods: .. py:method:: render_image(ima) Renders the image (an instance to the class :py:class:`rimage.RImage`) in one or two subplots depending on if the histogram is shown or not .. py:method:: clear() Removes all subplots .. py:method:: refresh() Redraws the current image in the current subplots