[英]Change origin of plot in Julia
想象以下带有Plots的简单图
Plots
using Plots plot([1,2,3,4,5], [1,2,3,4,5])
输出:
我们如何才能将上图中的原点更改为 0?
它实际上非常简单,您可以使用参数xlims和ylims并传递0和Inf作为限制,以强制轴以 0 为原点。这是一个可重现的示例:
xlims
ylims
0
Inf
using Plots plot([1,2,3,4,5], [1,2,3,4,5], xlims = [0,Inf], ylims = [0,Inf])
如您所见,原点已更改!
[英]Set axis origin using PyPlot plot in Julia
[英]How to change the precision of ticks in julia plot
[英]Change origin in image() plot of matrix in R
[英]Change coordinates for origin in scatter plot with centred axes
[英]How to change radial ticks in julia PyPlot polar plot?
[英]How to change the Winston plot range of x after evaluation in Julia?
[英]Trace plot in Julia
[英]Plot not defined with Julia
[英]How to plot a function in Julia
[英]Can't plot in Julia
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.