上一页 1 ··· 147 148 149 150 151 152 153 154 155 ··· 164 下一页
摘要: 在Qt界面库中,对于图形的绘制,在前面介绍了一种使用QPainter实现普通二维图形的绘制方法,该方法在paintEvent事件里编写绘图程序,其本质绘制的图形是位图,这种方法更适合于绘制复杂度不高的固定图形,并且不能实现图项的选择、编辑、拖放、修改等交互功能。 对于需要绘制大量的、需要交互的图形, 阅读全文
posted @ 2019-04-01 09:37 天子骄龙 阅读(10519) 评论(1) 推荐(1)
摘要: ['bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-bright', 'seaborn-colorblind', 'seaborn-dark-palette' 阅读全文
posted @ 2019-03-31 17:35 天子骄龙 阅读(229) 评论(0) 推荐(0)
摘要: 需要包含头文件, #include <vector> using namespace std; vector 容器与数组相比其优点在于它能够根据需要随时自动调整自身的大小以便容下所要放入的元素 vector<int> arr; //创建一个可以容纳整数值的动态数组 vector<int> a1(10 阅读全文
posted @ 2019-03-30 17:22 天子骄龙 阅读(1198) 评论(0) 推荐(0)
摘要: 需要 import matplotlib.patches as mp fill=False表示不填充 linewidth=2线的宽度 linestyle线的类型 多边形顶点连接(自动封闭):point-1 --> point-2 --> point-3 --> point-4 --> point-1 阅读全文
posted @ 2019-03-30 12:05 天子骄龙 阅读(362) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import datetime #解决能显示中文 plt.rcParams['font.sans-serif']=['SimHei'] #指定默认字体 SimHei为黑体 plt.rcParams['axes.unicode_minus']... 阅读全文
posted @ 2019-03-30 09:20 天子骄龙 阅读(1659) 评论(0) 推荐(0)
摘要: C++文件的读写存在一个问题:支持窄字节,不支持宽字节 文件类型分为:文本文件、二进制文件 C++ 通过以下几个类支持文件的输入输出: ofstream: 写操作(输出)的文件类 ifstream: 读操作(输入)的文件类fstream: 可同时读写操作的文件类 需要 #include <fstre 阅读全文
posted @ 2019-03-28 18:56 天子骄龙 阅读(784) 评论(0) 推荐(0)
摘要: 画数学公式: 官网资料:https://matplotlib.org/users/mathtext.html 视频教程 $作为开始和结束 符号的表示: 小写希腊字母: 大写希腊字母: Delimiters: 大符号: 标准函数名: 等等 ax.text(4,4,r'$sin(0)=cos(\frac 阅读全文
posted @ 2019-03-28 12:54 天子骄龙 阅读(749) 评论(0) 推荐(1)
摘要: 文字: 阅读全文
posted @ 2019-03-28 12:53 天子骄龙 阅读(172) 评论(0) 推荐(0)
摘要: 画注释: 还有高级注释,请看 https://blog.csdn.net/wizardforcel/article/details/54782628 阅读全文
posted @ 2019-03-28 12:52 天子骄龙 阅读(268) 评论(0) 推荐(0)
摘要: 坐标轴: 阅读全文
posted @ 2019-03-28 12:51 天子骄龙 阅读(411) 评论(0) 推荐(0)
上一页 1 ··· 147 148 149 150 151 152 153 154 155 ··· 164 下一页