python/matplotlib - parasite twin axis scaling

前端 未结 2 688
醉话见心
醉话见心 2021-01-03 11:01

Trying to plot a spectrum, ie, velocity versus intensity, with lower x axis = velocity, on the upper twin axis = frequency

The relationship between them (doppler for

2条回答
  •  时光取名叫无心
    2021-01-03 11:35

    Your "linear function" is a "simple scaling law" (with an offset). Just replace the pm_to_kms definition with your function.

提交回复
热议问题