添加箭头以绘制不同轴刻度而不会使箭头偏斜

时间:2016-06-02 17:53:29

标签: python matplotlib

如何将箭头添加到具有不同轴刻度的Matplotlib图中,而不会使箭头偏斜?我目前在x轴和y轴具有不同范围的图上调用以下函数时会看到以下行为:

A Matplotlib plot with arrows. The axes scales are different which seems to skew the arrow heads.

我打电话来创建箭头的功能:

    TextView dataTV0 = (TextView) v.findViewById(R.id.dataTV0);
    TextView dataTV1 = (TextView) v.findViewById(R.id.dataTV1);
    TextView dataTV2 = (TextView) v.findViewById(R.id.dataTV2);
    TextView dataTV3 = (TextView) v.findViewById(R.id.dataTV3);
    TextView dataTV4 = (TextView) v.findViewById(R.id.dataTV4);
    TextView dataTV5 = (TextView) v.findViewById(R.id.dataTV5);

    String[] data; //This is acquired from another source

 for (int i = 0; i < 6; i++){
            (String.format("dataTV%d", i).setText(data[i]);
        }

0 个答案:

没有答案