Mathematica中绘图中的Customsize背景 [英] Customsize Background in Plot within Mathematica

查看:128
本文介绍了Mathematica中绘图中的Customsize背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑:

ListPlot[Range[10], 
         Background -> Gray, 
         PlotLabel -> "I don`t want the background here !"]

有什么方法可以将背景仅应用于实际的绘图区域吗?

Is there any way to have the background applied solely to the actual plotting zone?

不在轴上,不在标签后面.那么在这种情况下基本上是矩形{{0,0},{10,10}}?

Not on the axis, not behind the label. So basically to the rectangle {{0,0},{10,10}} in that case?

我们可以使用PolarListPlot进行同样的操作吗?

Can we do the Same using PolarListPlot?

从笛卡尔图到极坐标直方图的Mathematica上使用Sjoerd解决方案:

dalist = {{21, 22}, {26, 13}, {32, 17}, {31, 11}, {30, 9}, 
          {25,12}, {12, 16}, {18, 20}, {13, 23}, {19, 21}, 
          {14, 16}, {14,22}, {18, 22}, {10, 22}, {17, 23}}

ScreenCenter = {20, 15}

ListPolarPlot[{ArcTan[##],EuclideanDistance[##]} & @@@ (# - ScreenCenter & /@ dalist), 
               PolarAxes -> True, PolarGridLines -> Automatic, Joined -> False, 
               PolarTicks -> {"Degrees", Automatic}, 
               BaseStyle -> {FontFamily -> "Arial", FontWeight -> Bold, 
               FontSize -> 12}, PlotStyle -> {Red, PointSize -> 0.02}]

推荐答案

您可以执行以下操作:

ListPlot[Range[10], PlotLabel -> "I don`t want the background here !",
  Frame -> {True, True, False, False}, AxesOrigin -> {0, 0}, 
 Prolog -> {Gray, Rectangle[Scaled[{0, 0}], Scaled[{1, 1}]]}]

这篇关于Mathematica中绘图中的Customsize背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆