如何移动核心图
我在 Mac 应用程序中有一个 Core-Plot 图表。但是内部表格看起来向下移动到包含“框架/边框”的左侧,因此两个轴都没有显示。我不知道如何更改此问题有人知道我需要更改哪些参数来解决此问题吗?
更新:抱歉,我没有意识到我可以上传图像,我已经这样做了,并且会同时尝试您的建议。
I have a Core-Plot Graph within a Mac Application. But the inside table is appearing shifted down and to the left of the containing "frame/border" so that neither of the axis' are showing. I cannot figure out how to change this does anyone know what parameters I need to change to fix this?
Update: Sorry I did not realize I could upload an image, I have done so know and will try your suggestions in the mean-time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定“表内”是什么意思。如果您能提供截图,更容易提供建议。
在看不到问题所在的情况下,请查看以下一些常见区域:
如果您还没有这样做,请查看 Core Plot 中包含的示例应用程序以获取想法。 Plot Gallery 应用程序有许多示例图,其他图也很有用。
您可能需要在图形和/或绘图区域框架上添加填充(
paddingLeft
、paddingBottom
等)。填充图形会将所有内容推离图形边缘。填充绘图区域框架会将绘图区域推入,以便轴和标题可以悬挂在绘图区域(绘制绘图的区域)之外。如果您想将轴固定到特定位置(例如图表的边缘),请设置浮动轴。否则请确保正交坐标已设置(默认为 0)。例如,x 轴的正交坐标是 x 轴与 y 轴相交的 y 值。
Not sure what you mean by "inside table". It would be easier to offer suggestions if you could post a screenshot.
Without seeing what's wrong, here are some common areas to look at:
If you haven't already done so, look at the example apps included with Core Plot for ideas. The Plot Gallery app has many sample plots and the others are useful, too.
You may need to add padding (
paddingLeft
,paddingBottom
, etc.) on the graph and/or plot area frame. Padding the graph pushes everything in away from the edges of the graph. Padding the plot area frame pushes the plot area in so the axes and titles can hang outside the plot area (the area where the plots are drawn).If you want to keep an axes pinned to a specific place, e.g., the edge of the graph, set up a floating axis. Otherwise make sure the orthogonal coordinate is set (it defaults to 0). For example, the orthogonal coordinate for the x-axis is the y-value where the x-axis crosses the y-axis.