我正在使用Tkinter和ttk构建一个GUI,并使用matplotlib来创建交互式图 - 再次像其他人一样.即使我到目前为止遇到的大多数问题都有详细记录,但这个问题似乎很少见:
在3d中绘图并set_lim()随后使用命令调整轴刻度时,绘制的线超出了看起来不好的坐标系.而且,我对这个似乎有点小的框架感到不满意.这是一个例子:
# Missmatch.py
"""Graphical User Interface for plotting the results
calculated in the script in Octave"""
# importing libraries
import matplotlib, ttk, threading
matplotlib.use('TkAgg')
import numpy as nm
import scipy as sc
import pylab as pl
import decimal as dc
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
from mpl_toolkits.mplot3d import Axes3D
from oct2py import octave as oc
import Tkinter as tki
class CS:
"""CS - Controlset. This part creates the GUI with all …Run Code Online (Sandbox Code Playgroud)