フィルターのクリア

White space near box edge while combining quiver and contour plots

1 回表示 (過去 30 日間)
Gopakumar
Gopakumar 2015 年 11 月 11 日
コメント済み: jason mcilvenny 2022 年 3 月 10 日
Hi, I am trying to combine a quiver plot with a contour plot. However, when I have arrows pointing outwards across the figure frame/box, Matlab inserts whitespace to accommodate the arrows. See whitespace in figure below to the right edge of the frame/box.
I would prefer that there is no whitespace in between and the arrows jump outside of the figure frame/box. I know this can be done in IDL for instance. I would like to do it in Matlab though as I dont have an IDL license. I would be very grateful for any help you can provide.

採用された回答

jason mcilvenny
jason mcilvenny 2022 年 3 月 9 日
xlim ylim
  2 件のコメント
DGM
DGM 2022 年 3 月 9 日
Care to elaborate for clarity?
Adding an example would make this a helpful answer.
jason mcilvenny
jason mcilvenny 2022 年 3 月 10 日
In your figure above, set the x axis limits using xlim to eliminate white spaces. Im not sure what maximum value on x axis for figure, guessing 6.2?
xlim([0 6.2])
And also set the clipping property of the axis to decide wheather arrows clipped or arrows extend outside graph limits. Either display axis property editor or set using:
ax = gca; % get the current axis
ax.Clipping = 'off'; % turn clipping off

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by