轴端显示功率为10 [英] Display power of 10 at axis' end

查看:70
本文介绍了轴端显示功率为10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据在x轴上的范围是0到800000,我在一个正方形中有4个图.为了使刻度可读,我想在0到8之间标记刻度(即用%1.0t),并在刻度的末尾标注* 10 ^ 5.我尝试了几种格式选项,但所有选项都在每个刻度后面添加了* 10 ^ 5或e5.有没有办法把它放到最后而不是每个地方?

My data runs from 0 to 800000 on the x-axis and I have 4 plots in a square. To make the scale readable, I'd like to label the ticks from 0 to 8 (i.e. with %1.0t) and write the *10^5 at the end of the scale. I tried several format options, but all of them add *10^5 or e5 behind each tick. Is there a way to only put it in the end instead of each one?

推荐答案

set xtics 100000 format "%1.0t"
set label "*10^5" at graph 1, 0  offset 4

但是,更传统的方法是在轴标签中解释比例尺:

However the more conventional approach is to explain the scale in the axis label:

set xlabel "Whatever it is (x 10^5)"

这篇关于轴端显示功率为10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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