[英]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.