Plotting

Plotting Module

This module contains functions to plot chromaticity data.

Functions

Functions to plot chromaticity data.

chroma_gui.plotting.functions.plot_chromaticity(fig, ax, dpp_filename, chroma_tfs, axis, fit_orders, beam)[source]

Plots the given orders of the chromaticity function with the values in the chroma_tfs TfsDataFrame

Widget

Defines the Matplotlib widget.

class chroma_gui.plotting.widget.MplCanvas(*args: Any, **kwargs: Any)[source]

Matplotlib canvas class to create figure

class chroma_gui.plotting.widget.MplWidget(*args: Any, **kwargs: Any)[source]

Matplotlib widget class

chroma_gui.plotting.widget.mathTex_to_QPixmap(mathTex: str, fs: int) PyQt5.QtGui.QPixmap[source]

Convert mathTex string to QPixmap

Parameters:
  • mathTex (str) -- mathTex string

  • fs (int) -- font size