【问题标题】:How to suppress the z-axis legend in contour plots in Stata?如何抑制Stata等高线图中的z轴图例?
【发布时间】:2018-03-04 22:31:41
【问题描述】:

标题说明了一切。例如,下面的示例图,复制自 Stata 的第一个 twoway contour 图类型示例,如何抑制右侧的垂直条,五个类别从蓝色/7,600 到红色/8,100。我知道我可以通过修改ztitle 选项来抑制(或改变)“深度(英尺)”部分。

sysuse sandstone
twoway contour depth northing easting

如果重要的话,我使用的是 Stata 14.2。

【问题讨论】:

  • 通常的, legend(off) 被忽略。我认为是因为图例是用专用代码构建的。您可以在图表编辑器中删除图例。不知道为什么有人会想要这样做。

标签: plot stata


【解决方案1】:

试试clegend(而不是legend):

twoway contour depth northing easting, clegend(off) aspectratio(1)

这记录在 help legend_optionshelp clegend_option 下。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-09
    • 2014-02-21
    • 2012-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-09
    相关资源
    最近更新 更多