【Mathematica入门】参数方程作图

本文,介绍一下,Mathematica绘制参数方程图像的方法。

工具/原料

  • 电脑
  • Mathematica

方法/步骤

  1. 1

    基本语法布局是:ParametricPlot[{参数方程},{绘图规模}],

    ParametricPlot[{t,t^2},{t,0,1}]

    5a5a00def4dca03926ee9a5958d96975f3c40d4a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  2. 2

    润色曲线的颜色,在后面加上选项:

    PlotStyle->Green

    edd84743040148fe20b309de8fd149299b88024a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  3. 3

    转变曲线的宽度,在PlotStyle内里加选项:

    Thickness[0.01]

    把线宽变为0.01。

    acfda02f47704618952bb08eb08602214e57764a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  4. 4

    要想实现渐变色,需要利用:ColorFunction。

    f9617afb960b312150905016dee983aee9d76d4a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  5. 5

    还可以用纯函数实现渐变色:

    ColorFunction->Function[{x,y},Hue[x]]

    e2aefe781431dfb66d9d03d312cf02532e63634a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  6. 6

    也可以加大色彩变化的频率:

    ColorFunction->Function[{x,y},Hue[5 x+6 y]]

    e3d059e833e0397257f2ef5fb58630486043564a.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80END
  • 发表于 2022-08-23 21:32
  • 阅读 ( 276 )
  • 分类:其他类型

相关问题

0 条评论

请先 登录 后评论