【问题标题】:Merge and Animate Plot in Maple?在 Maple 中合并和动画情节?
【发布时间】:2014-03-07 08:02:19
【问题描述】:

我有一段 maple 代码,我在其中渲染两个单独的图,然后将这些图存储在变量 plot1plot2 中。

例如:

plotAnimation = NULL:
for f to 10 do
  plot1 := plot( [points1], view=[-12..12,-12..12], color=red, axes=none, scaling=constrained );

  plot2 := plot( [points2], view=[-12..12,-12..12], color=green, axes=none, scaling=constrained );

  plotAnimation := plotAnimation, [plot1, plot2]
end do;
display(plotAnimation, insequence=true);

我想合并这两个图并同时为它们设置动画。出于某种原因,当我这样做时,我不断收到错误。我有一个程序,用于为plot1plot2 变量分配一个绘图(曲线()),在这种情况下使用基本的二维绘图函数plot。但我不断收到错误,我不确定这是什么问题。

【问题讨论】:

    标签: plot merge maple


    【解决方案1】:

    您只需要稍作修正:每个绘图对都需要结合 display

    plotAnimation = NULL:
    for f to 10 do
      plot1 := plot( [points1], view=[-12..12,-12..12], color=red, axes=none, scaling=constrained );
    
      plot2 := plot( [points2], view=[-12..12,-12..12], color=green, axes=none, scaling=constrained );
    
      plotAnimation := plotAnimation, display([plot1, plot2])
    end do;
    display([plotAnimation], insequence=true);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-18
      • 1970-01-01
      • 1970-01-01
      • 2014-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多