公告:本站正式转型为非交互式静态网站!
转型:本站将通过笔记和博客的形式继续为大家服务,关于 Mathematica 问答服务请移步至QQ群:365716997
联系:如有问题请联系QQ群管理员,或发送邮件至:lixuan.xyz@qq.com。
感谢:最后非常感谢大家多年来的支持与帮助!
参考《互联网跟帖评论服务管理规定》《中华人民共和国网络安全法》《网络信息内容生态治理规定》《互联网用户账号信息管理规定》

—— 2022-11-27

欢迎来到 Mathematica 问答社区

提问时请贴上文本代码

语法高亮:在编辑器中点击

被禁止的话题:广告破解

请阅读:《提问的智慧》

备用域名:mma.ooo

支持LaTex数学公式
行内公式标识符:\$ 或“$\backslash ($”+“$\backslash )$”,
行间公式标识符:\$\$ 或 “$\backslash [$”+“$\backslash ]$”

社区建议QQ群:365716997

分类

0 投票
1.4k 浏览
f[x_] := (.5)^x
p = Plot[
   {f[x]}, {x, -1, 4},
   AxesOrigin -> {0, 0}];
pAxesLabel = Graphics[{
    Text[Style["x", Italic, 12, FontFamily -> "Times"], {4.1, -.3}], 
    Text[Style["y", Italic, 12, FontFamily -> "Times"], {-.4, 2.3}]
    }];
Show[p, pAxesLabel, PlotRange -> All]
Show[pAxesLabel, p, PlotRange -> All]

 

可以看到第二幅图中是没有坐标轴的,想请教一下发生这种情况的原因是什么。

用户: WMN7 (606 分)

1个回答

+1 投票
 
已采纳
Options[Graphics]
{AlignmentPoint -> Center, AspectRatio -> Automatic, Axes -> False, 
 AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> {}, 
 Background -> None, BaselinePosition -> Automatic, BaseStyle -> {}, 
 ColorOutput -> Automatic, ContentSelectable -> Automatic, 
 CoordinatesToolOptions -> Automatic, 
 DisplayFunction :> $DisplayFunction, Epilog -> {}, 
 FormatType :> TraditionalForm, Frame -> False, FrameLabel -> None, 
 FrameStyle -> {}, FrameTicks -> Automatic, FrameTicksStyle -> {}, 
 GridLines -> None, GridLinesStyle -> {}, ImageMargins -> 0., 
 ImagePadding -> All, ImageSize -> Automatic, 
 ImageSizeRaw -> Automatic, LabelStyle -> {}, Method -> Automatic, 
 PlotLabel -> None, PlotRange -> All, PlotRangeClipping -> False, 
 PlotRangePadding -> Automatic, PlotRegion -> Automatic, 
 PreserveImageOptions -> Automatic, Prolog -> {}, RotateLabel -> True,
  Ticks -> Automatic, TicksStyle -> {}}
  
  Options[Plot]
  {AlignmentPoint -> Center, AspectRatio -> 1/GoldenRatio, Axes -> True,
  AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> {}, 
 Background -> None, BaselinePosition -> Automatic, BaseStyle -> {}, 
 ClippingStyle -> None, ColorFunction -> Automatic, 
 ColorFunctionScaling -> True, ColorOutput -> Automatic, 
 ContentSelectable -> Automatic, CoordinatesToolOptions -> Automatic, 
 DisplayFunction :> $DisplayFunction, Epilog -> {}, 
 Evaluated -> Automatic, EvaluationMonitor -> None, 
 Exclusions -> Automatic, ExclusionsStyle -> None, Filling -> None, 
 FillingStyle -> Automatic, FormatType :> TraditionalForm, 
 Frame -> False, FrameLabel -> None, FrameStyle -> {}, 
 FrameTicks -> Automatic, FrameTicksStyle -> {}, GridLines -> None, 
 GridLinesStyle -> {}, ImageMargins -> 0., ImagePadding -> All, 
 ImageSize -> Automatic, ImageSizeRaw -> Automatic, LabelStyle -> {}, 
 MaxRecursion -> Automatic, Mesh -> None, MeshFunctions -> {#1 &}, 
 MeshShading -> None, MeshStyle -> Automatic, Method -> Automatic, 
 PerformanceGoal :> $PerformanceGoal, 
 PerformanceGoal :> $PerformanceGoal, PlotLabel -> None, 
 PlotLabels -> None, PlotLegends -> None, PlotPoints -> Automatic, 
 PlotRange -> {Full, Automatic}, PlotRangeClipping -> True, 
 PlotRangePadding -> Automatic, PlotRegion -> Automatic, 
 PlotStyle -> Automatic, PlotTheme :> $PlotTheme, 
 PreserveImageOptions -> Automatic, Prolog -> {}, 
 RegionFunction -> (True &), RotateLabel -> True, 
 ScalingFunctions -> None, TargetUnits -> Automatic, 
 Ticks -> Automatic, TicksStyle -> {}, 
 WorkingPrecision -> MachinePrecision}

Show中用的对象的先后顺序不同,对应的Axes的选项就不同。

Show的作用是连接图形基元

用户: 落雨流觞 (1.1k 分)
采纳于 用户:WMN7
...