Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « FigureCanvasBase »

Méthode matplotlib.figure.FigureCanvasBase.get_width_height

Signature de la méthode get_width_height

def get_width_height(self, *, physical=False) 

Description

help(FigureCanvasBase.get_width_height)

Return the figure width and height in integral points or pixels.

When the figure is used on High DPI screens (and the backend supports
it), the truncation to integers occurs after scaling by the device
pixel ratio.

Parameters
----------
physical : bool, default: False
    Whether to return true physical pixels or logical pixels. Physical
    pixels may be used by backends that support HiDPI, but still
    configure the canvas using its actual size.

Returns
-------
width, height : int
    The size of the figure, in points or pixels, depending on the
    backend.


Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé