This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from matplotlib.backends.backend_agg import FigureCanvasAgg | |
import dearpygui.dearpygui as dpg | |
import numpy as np | |
class donutGraph(): | |
def __init__(self,width:int=500,height:int=500,dpi:int=100,tightLayout:bool=True,pad:int=0,colors:list=None,labels:list=[],values:list=None,background:str=None,labelSize:int=14,labelColor:str="white"): | |
"""Creates a donut graph with matplotlib and returns it has an image for use as a texture in DearPyGUI. | |
Attributes: |