Problem with stacking plots, color on x-axis
6 views (last 30 days)
Show older comments
Hello, I need some help with a plotting issue that I've been having for over a month. I have been stacking plots on the same specified paper,
xPaper = 21.59;
yPaper = 27.94;
set(gcf,...
'paperunits','centimeters',...
'papersize', [xPaper yPaper])
xSize = 15;
ySize = 21;
set(gcf,...
'PaperPosition',[1 5 xSize ySize],...
'PaperPositionMode', 'manual',...
'Position',[800 400 xSize*50 ySize*50])
I then specify different y and x positions on the page; For example:
y = 16.7/Ysize
y2 = 11.2/Ysize ...etc.
Then before plotting each plot, I specify the position of the plot, so I can stack them accordingly:
for example: axes('position',[x y width height])
the problem I'm having is that I CANNOT get the x axis on my stacked plots to remain white or have no color.
This is the set(gca) that i've been using:
set(gca,'xlim', [date_s(1,1) date_s(end,1)],...
'ylim',[-2.5 3],...
'yaxislocation','left',...
'tickdir','in',...
'fontsize',ft,...
'linewidth', 2,...
'color','none',...
'xcolor',get(gcf,'color'))
I've attached the result of what i'm getting! I've also tried 'color', 'white',...
0 Comments
Answers (1)
Sean de Wolski
on 10 Jan 2018
I'm not seeing the x-axis in the attached picture. Perhaps you could provide a full runnable example?
Either way, this should work, repeat it for both axes that you have:
ax = gca %axes('position',etc)
ax.XAxis.Visible = 'off'
0 Comments
See Also
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!