Please prompt. The problem is as follows. There is a schedule. To him there is a ylabel. How to make a part of the text have the direction of the letters parallel to the OY axis, and the other part of the text is perpendicular to the 0Y axis. It's about Matlab. Like this:
** I saw such a caption in one of the latest issues of the English-language magazine.
|
2 answers
Getting separate handles for parts of the text is quite problematic, if at all possible. So, you can try to create a second axis, in place of the main axis, making the entire axis invisible, making only the signature visible.
close all x = linspace(0,2*pi); y = sin(x); f1 = figure(1); ax1 = gca; %переменная для основных осей ax2 = axes('Position',get(ax1,'Position')); %создаём новую вспомогательную ось на том же месте что и основная ось set(ax2,'Visible','off');%и делаем её невидимой, чтоб не мешала основному графику h1 = plot(ax1,x,y,'LineWidth',2);%строим график yl1 = ylabel(ax1,'Correlation');%первая подпись yl2 = ylabel(ax2,'(a)','Rotation',0);%вторая подпись с поворотом 0 градусов, вместо 90 set(yl2,'Visible','on');%делаем вторую подпись видимой set(yl2,'Units','Normalized','Position',[-0.1,0.65,0]);%меняем позицию второй подписи The result is shown below. You can play with the position, depending on your needs and taste.
|
Thank you, I did not expect an answer. I solved this problem differently. I edited the chart using the console. In the title of the second line posted (a), and then, using the properties of the image editor, moved this line and turned as I needed. Your way is more graceful. Thanks again. Sincerely, Stanislav.
|
