【问题标题】:Set different Color for Tics on SAME Axes为相同轴上的抽动设置不同的颜色
【发布时间】:2015-11-06 12:55:53
【问题描述】:

是否可以在同一轴上使用不同颜色或样式的抽动。

tics:0,1,1.5,2 我想要0 和2 彩色red 或bold。

非常适合multiplots,其中有关于相同测量的图,并且您希望在不同的图中标记 y 或 x 范围而不会使其过载太多。我现在的替代方法是在 y 轴上明确写出范围,但如果我的问题有一个解决方案,它会更顺畅。我检查了mxtics,但根据我的经验,无法为major和minortics 设置不同的颜色。但也许我错过了什么。

【问题讨论】:

  • 你可以作弊并使用适当格式的箭头。
  • o 我需要调查一下,谢谢...所以你的意思是没有“想要的 gnuplot”方式?

标签: colors gnuplot


【解决方案1】:

这是我在评论中的意思:

set style arrow 1 nohead linecolor rgb "red" linewidth 2
set xtics pi format "%.0P"
set arrow 1 from -1.5*pi,-.38 to -1.5*pi,-.4 as 1
set arrow 2 from 1.5*pi,-.38 to 1.5*pi,-.4 as 1
plot [-4*pi:4*pi] sin(x)/x

产量

【讨论】:

    猜你喜欢
    • 2015-09-15
    • 2014-09-29
    • 1970-01-01
    • 1970-01-01
    • 2016-08-10
    • 1970-01-01
    • 2015-09-29
    • 2015-07-07
    • 1970-01-01
    相关资源
    最近更新 更多