500*_*500 0 customization plot background wolfram-mathematica
考虑:
ListPlot[Range[10],
Background -> Gray,
PlotLabel -> "I don`t want the background here !"]
Run Code Online (Sandbox Code Playgroud)

有没有办法让背景仅适用于实际的绘图区?
不在轴上,不在标签后面.那么基本上就是那个矩形{{0,0},{10,10}}?
编辑:我们可以使用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}]
Run Code Online (Sandbox Code Playgroud)

abc*_*bcd 10
你可以这样做:
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}]]}]
Run Code Online (Sandbox Code Playgroud)

你可以Labeled像使用一样
Labeled[
ListPlot[Range[10], Background -> Gray,
PlotLabel -> "I don`t want the background here !"],
"So place the label here", Top]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1489 次 |
| 最近记录: |