Fine tuning a 3D figure without modifying the arguments of `view`

조회 수: 1 (최근 30일)
Leo Simon
Leo Simon 2016년 7월 17일
댓글: Leo Simon 2016년 7월 18일
In the figure below, the cluster of stem lines to the left of the figure (a cluster is identified by a common color) are quite far apart. Moving from left to right the lines in each cluster become closer and closer together. I'd like the gap between the lines within each cluster to be more uniform across clusters as I move from left to right. Obviously, I can achieve some uniformity by modifying the
view
command, e.,g setting,say,
view(0,-5)
but then the figure looks terrible. So I'm there's some other way to obtain a more uniform gap by modifying some other property of the figure (one of the camera properties, maybe?). I've attached the .fig file in the hope that somebody can show me how to do this.
Thanks very much for any suggestions.

채택된 답변

John BG
John BG 2016년 7월 18일
Leo
what you want to do is to switch the camera option Projection from 'Perspective' to 'Orthographic'.
launch the camera toolbar
open perspective1.fig
cameratoolbar
reading the camera toolbar right to left, the first button you find is a STOP sign button.
The next button is the 'Reset Camera and Scene Light'.
The next 2 buttons toggle between 'Perspective' (3rd from right) and 'Orthographic'.
Click on 'Orthographic'
You see the stem rods are now equally spaced regardless of the colour set.
I am attaching a screenshot in a few days, just exhausted uploads for 24h.
Leo would you please be so kind to mark my answer as ACCEPTED ANSWER?
To any other reader, please if you find this answer of any help solving your question,
please click on the thumbs-up vote link,
thanks in advance
John

추가 답변 (1개)

the cyclist
the cyclist 2016년 7월 17일
편집: the cyclist 2016년 7월 17일
Imagining this figure as an actual, real-life, 3-dimensional object, I would say that there is no way you can configure it to get what you want. I could be wrong.
I think a grouped bar chart (with each bar representing a panel size) might capture what you are hoping for better. It might not be quite as elegant at first glance, but might be a better visualization for actually interpreting the data.
  댓글 수: 2
Leo Simon
Leo Simon 2016년 7월 17일
편집: the cyclist 2016년 7월 17일
Thanks very much for the suggestion. I've been playing around with bar3. It seems as though what would work well is if I could replace each of my stem3 commands with an individual stacked bar3, but I'd want to be able to customize independently the color ordering for each bar, e.g., for one bar have blue/red/green, and another green/blue/red. But for some odd reason, the graphics handle to bar3 doesn't seem to give me the control I need, in particular, the dimensions of the bars, location of the bars in the x,y plane, and the ability to change the colors of individual stacked bars
the cyclist
the cyclist 2016년 7월 17일
To be clear, I am suggesting you use bar, and grouped bars, not bar3.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by