由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - matlab一问
相关主题
MatLab 一问Summer Internship opportunities with Synopsys
Re: 浅谈生物信息的职业发展规划跑benchmark好累啊
[转载] metapost???CS@VT seeks Postdoc in program-analysis based security (转载)
==========urgent latex question=========graphics和vison编程要用c++里的template library吗?
哪位兄弟有SIMD extension的仿真经验?请教:如何测试什么形式的函数更快?
what's microbenchmark[转载] 问个matlab画图问题
[zt]spec.org 测试报告中的ratio是如何算出来的?[转载] How to implement the "Contour" command
benchmark到底是什么意思阿?急问: 关于Matlab的问题
相关话题的讨论汇总
话题: matlab话题: text话题: object话题: just话题: rotation
进入CS版参与讨论
1 (共1页)
m******w
发帖数: 8
1
我画的一个图里的X轴上每个值是一组字符串
比如: y=f(x)
x y
"aaaa" 10
"bbbb" 11
"cccc" 13
...
问题是x一共有13个值,所以在图里搁不下这13个字符串. 我想问一下如何将这些字
符串旋转45度, 这样就不用担心互相覆盖了
f*****r
发帖数: 229
2
In matlab, a text has a property "Rotation(angle)". Just get the text's
handle, then reset its rotation.

【在 m******w 的大作中提到】
: 我画的一个图里的X轴上每个值是一组字符串
: 比如: y=f(x)
: x y
: "aaaa" 10
: "bbbb" 11
: "cccc" 13
: ...
: 问题是x一共有13个值,所以在图里搁不下这13个字符串. 我想问一下如何将这些字
: 符串旋转45度, 这样就不用担心互相覆盖了

m******w
发帖数: 8
3
hi,
thanks. I have following matlab code. How to add another line of sta
tement to do the rotation for the x-axis? Just tried google and found n
othing helpful. thanks.
xlabel('Benchmarks','FontSize',18)
ylabel('Performance Increase (%)','FontSize',18)
set(gca,'XTickLabel',{'bzip2', 'crafty', 'gap', 'gcc', 'gzip', 'mcf', 'p
arser', 'perlbmk', 'twolf', 'vortex', 'vpr'})

【在 f*****r 的大作中提到】
: In matlab, a text has a property "Rotation(angle)". Just get the text's
: handle, then reset its rotation.

b*****y
发帖数: 178
4
I had the same problem before.In matlab, you can use text function(see help),
to put the text in the right place. But it is no the XTicklable, just the text
in the figure. If you want your xlable rotate by 45 , you'd better do it in
Excel. Excel can do it very easy.

【在 m******w 的大作中提到】
: hi,
: thanks. I have following matlab code. How to add another line of sta
: tement to do the rotation for the x-axis? Just tried google and found n
: othing helpful. thanks.
: xlabel('Benchmarks','FontSize',18)
: ylabel('Performance Increase (%)','FontSize',18)
: set(gca,'XTickLabel',{'bzip2', 'crafty', 'gap', 'gcc', 'gzip', 'mcf', 'p
: arser', 'perlbmk', 'twolf', 'vortex', 'vpr'})

f*****r
发帖数: 229
5
In fact, matlab can do many very low level plot manipulations. In matlab, each
stuff is an object. I guess that you can get the object handle of each text
even that it is a XTicklabel. A good exercise to understand this structure is
to draw a plot in matlab, then try to find the object handle for every object.

help),
text


【在 b*****y 的大作中提到】
: I had the same problem before.In matlab, you can use text function(see help),
: to put the text in the right place. But it is no the XTicklable, just the text
: in the figure. If you want your xlable rotate by 45 , you'd better do it in
: Excel. Excel can do it very easy.

1 (共1页)
进入CS版参与讨论
相关主题
急问: 关于Matlab的问题哪位兄弟有SIMD extension的仿真经验?
有谁用过matlab的并行运算功能?what's microbenchmark
[转载] image display--MATLAB 求助[zt]spec.org 测试报告中的ratio是如何算出来的?
请问怎样在java里面调用Matlab函数?benchmark到底是什么意思阿?
MatLab 一问Summer Internship opportunities with Synopsys
Re: 浅谈生物信息的职业发展规划跑benchmark好累啊
[转载] metapost???CS@VT seeks Postdoc in program-analysis based security (转载)
==========urgent latex question=========graphics和vison编程要用c++里的template library吗?
相关话题的讨论汇总
话题: matlab话题: text话题: object话题: just话题: rotation