MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / points_to_pixels

Method points_to_pixels

lib/matplotlib/backend_bases.py:631–649  ·  view source on GitHub ↗

Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch:: points to pixels = points * pixels_per_inch/72 * dpi/72

(self, points)

Source from the content-addressed store, hash-verified

629 return GraphicsContextBase()
630
631 def points_to_pixels(self, points):
632 """
633 Convert points to display units.
634
635 You need to override this function (unless your backend
636 doesn't have a dpi, e.g., postscript or svg). Some imaging
637 systems assume some value for pixels per inch::
638
639 points to pixels = points * pixels_per_inch/72 * dpi/72
640
641 Parameters
642 ----------
643 points : float or array-like
644
645 Returns
646 -------
647 Points converted to pixels
648 """
649 return points
650
651 def start_rasterizing(self):
652 """

Callers 15

_draw_text_as_pathMethod · 0.95
drawMethod · 0.45
drawMethod · 0.45
get_window_extentMethod · 0.45
drawMethod · 0.45
get_window_extentsMethod · 0.45
_update_ticksMethod · 0.45
get_sizeMethod · 0.45
get_bboxMethod · 0.45
get_bboxMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected