当我使用
%matplotlib notebook
import matplotlib.pyplot as plt
我得到了互动图,即我也可以放大图中的数字。
对于julia,此命令似乎不存在。有什么想法吗?
答案 0 :(得分:2)
答案 1 :(得分:0)
今天,我正在考虑如何在不参考python
或plotly
或Jupiter笔记本中其他内容的情况下以交互方式扩大绘图窗口。而且我找到了一个很好的解决方案。它使用包Interact
。一个简单的例子如下。您可以获得3行交互式绘图。
import Pkg; Pkg.add("Interact")
using LinearAlgebra, Plots, Interact
@manipulate for n in 10:100, w in 200:1000, h in 200:1000
plot(randn(n),randn(n),seriestype=:scatter,label="n=$(n)",size = (w, h))
end