场景

C#窗体应用中使用ZedGraph曲线插件绘制图表:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/99716066

Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573

https://www.cnblogs.com/badaoliumangqizhi/p/11422087.html

在上面已经实现的效果为:

 

 

可以看到随着图形的缩小,相应的字体和间距等也被缩小,需要设置
字体大小和tic大小将始终完全符合指定的大小,而不进行任何缩放。
注:

博客主页:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。

实现

通过查找其手册文档,找到这么一个属性。

 

 

官方原文说明:

Determines if the font sizes, tic sizes, gap sizes, etc. will be scaled according to the size of the Rect and the BaseDimension. If this value is set to false, then the font sizes and tic sizes will always be exactly as specified, without any scaling.

直译过来:

确定字体大小、tic大小、间隙大小等是否将根据rect和basedimension的大小进行缩放。如果将此值设置为false,则字体大小和tic大小将始终完全符合指定的大小,而不进行任何缩放。

实现代码:

myPane.IsFontsScaled = false;

 

其中

//声明pane对象
GraphPane myPane = new GraphPane();
//获取控件的Pane
myPane = zgc.GraphPane;

 

其中

ZedGraphControl zgc

 

效果

 

posted on 2019-09-20 09:44  霸道流氓  阅读(846)  评论(0编辑  收藏  举报

Live2D