You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将Gnuplot极坐标图的raxis标签旋转45度且隐藏rtics

实现方法

你只需调整原有代码中的径向轴相关配置即可,修改后的完整可运行代码如下:

set polar
set angles degrees
unset xtics
unset ytics
set ttics 0,30
set grid polar linestyle 1 dashtype 2 linecolor rgb 'grey'
set samples 200, 200
unset border

# 以下为新增的需求适配配置
set rlabel angle 45
set rtics scale 0

set xrange [-0.51:0.51]
set yrange [-0.51:0.51]
set size square
unset key

plot sin(2*t)*cos(2*t)

配置说明

  • set rlabel angle 45:指定所有径向数值标签(0、0.1、0.2等)显示在极坐标45°角位置,替换默认的x轴正方向位置
  • set rtics scale 0:将径向刻度线的长度设置为0,完全隐藏所有rtics,不会影响径向数值标签的正常显示

内容的提问来源于stack exchange,提问作者ASarkar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.03 03:24:03