Update to the latest version 3.2.5 for better performance
This module is tool for using the graphs and plots obtained by class calculus functions in a tkinter GUI application .
>>>from dscal.gui import tkcal
This class is inherited from class calculus.
Arguments :
style : This is the type of layout of the graphs obtained by plot() and plot3d() methods [ defaults to 'ggplot' style] .
To find the available styles ,
>>>import matplotlib.style
>>>matplotlib.style.available
limit : This is a list/tuple of length 2 , depicting the domain of graph intended [ defaults to [-10,10] ].
wrt : This refers to variable with respect to which all calculus operations are being carried out. Default value is 'x' , only other value allowed is 'y'.
colormap : This argument refers to the color mapping being used for the 3D graph to differentiate between depths of the plotted surface. To know more about colormaps follow the link here.
master : This refers to the widget to which the graph is being packed to.
*The above parameters can be passed at the time of creation of the instance or at the respective method they are related to.
# In this example we are creating a window and using the tkcal class from dscal.gui module to pack a 3D graph into it [if you want a 2D graph , use graph() method instead of graph3d() method ]
from tkinter import *
from dscal.gui import tkcal
root=Tk()
my_exp=tkcal('sinx*cosy')
my_graph=my_exp.graph3d(limit=[-5,5])
my_graph.pack()
root.mainloop()
This method returns a 2D plotted graph which can packed to the tkinter window using pack() or grid() methods .
Arguments :
style : This is the type of layout of the graphs obtained by plot() and plot3d() methods [ defaults to 'ggplot' style] .
To find the available styles ,
>>>import matplotlib.style
>>>matplotlib.style.available
limit : This is a list/tuple of length 2 , depicting the domain of graph intended [ defaults to [-10,10] ].
wrt : This refers to variable with respect to which all calculus operations are being carried out. Default value is 'x' , only other value allowed is 'y'.
master : This refers to the widget to which the graph is being packed to.
This method returns a 3D plotted graph which can packed to the tkinter window using pack() or grid() methods .
Arguments :
style : This is the type of layout of the graphs obtained by plot() and plot3d() methods [ defaults to 'ggplot' style] .
To find the available styles ,
>>>import matplotlib.style
>>>matplotlib.style.available
limit : This is a list/tuple of length 2 , depicting the domain of graph intended [ defaults to [-10,10] ].
wrt : This refers to variable with respect to which all calculus operations are being carried out. Default value is 'x' , only other value allowed is 'y'.
colormap : This argument refers to the color mapping being used for the 3D graph to differentiate between depths of the plotted surface. To know more about colormaps follow the link here.
master : This refers to the widget to which the graph is being packed to.