核心图 - 防止图的缩放/缩放以显示全轴范围 [英] Core plot- prevent zooming/scaling of plot to show full axes range

查看:162
本文介绍了核心图 - 防止图的缩放/缩放以显示全轴范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有从0到100的y轴边界和从0到10的x轴边界。当绘制数据点(0,85)和(1,86)时,只有带有数据点的绘图部分。我明白这是如何有用,但在我的情况下,我需要显示的整个轴,unscaled。有没有办法显示完整的轴,而不缩放到数据点?谢谢你的帮助。

I have a y-axis boundary from 0 to 100 and an x axis boundary from 0 to 10. When I plot data points (0,85) and (1,86), only the portion of the plot with data points is shown. I understand how this is useful, but in my case I need the entire axis shown, unscaled. Is there a way to show the complete axes, without zooming to the data points? Thanks for your help.

>

推荐答案

这是一个提示,而不是一个答案..但正如我在评论中说的:

Is more a hint than an answer.. but, as I already said in comments:


  • 您可以尝试删除scaleToFitPlots并直接设置xRange和yRange;

或。


  • 调用-scaleToFitPlots:然后设置xRange

这篇关于核心图 - 防止图的缩放/缩放以显示全轴范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆