显示在AndroidPlot负x值 [英] display negative x-values in AndroidPlot

查看:138
本文介绍了显示在AndroidPlot负x值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个坐标系是这样的:

I want to create a coordinate system like this:

http://xahlee.info/SpecialPlaneCurves_dir/CoordinateSystem_dir/rectangular_coord.png

我试着用AndroidPlot创造它,但我无法弄清楚如何。 我的主要问题:我无法弄清楚如何绘制负x值和如何保持X / Y轴永久在屏幕上,变焦时也是如此。 是否有人有这样的一个解决方案?

I tried creating it with AndroidPlot, but I couldn't figure out how. My main problems: I can't figure out how to draw negative x-values and how to keep the x/y-axis permanent on the screen, even when zooming. Does someone have an solution for this?

推荐答案

试试这个

plot.centerOnDomainOrigin(0);
plot.centerOnRangeOrigin(0);

其中,剧情 XYPlot

这篇关于显示在AndroidPlot负x值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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