【问题标题】:Octave + Gnuplot rendering image upside downOctave + Gnuplot 倒置渲染图像
【发布时间】:2015-06-12 13:05:52
【问题描述】:

我正在使用函数 imagesc() 显示数据。如果我将 fltk 设置为 graphics_toolkit 图像显示正确。


无法直接发布图片(信誉低)http://i.stack.imgur.com/ARiwF.png

如果我使用 gnuplot 作为绘图程序图像会颠倒呈现。 fltk 对我来说无法使用,因为它的窗口在 octave 中的函数运行时没有响应。我还尝试了 plot sine,它也是通过 fltk 和 gnuplot 绘制的。

【问题讨论】:

    标签: gnuplot octave


    【解决方案1】:

    至少有两种解决方法:

    • 使用axis("xy")axis("ij") 控制y 轴的方向,如axis documentation 中所述

    • 使用set(gca, "ydir", "normal")set(gca, "ydir", "reverse"),如axes properties doc 中所述

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-13
      • 2022-12-21
      相关资源
      最近更新 更多