Plot diagramm, i have overlapping axes.

I have two overlapping X-Axes on the left side of the plotted diagram. How can i delete the blue coloured x-Axes?
Thanks!

3 commentaires

Image Analyst
Image Analyst le 21 Mai 2022
You forgot to attach the screenshot of "the plotted diagram". We'll check back later for it.
Mapete
Mapete le 22 Mai 2022
U can just scroll the screenshot to the right side.
Rik
Rik le 7 Juin 2022
I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.

Connectez-vous pour commenter.

Réponses (1)

MJFcoNaN
MJFcoNaN le 22 Mai 2022
The TiledChartLayout object may not be an input of 2nd axes in your code.
You can try to change
ax2=axes(t);
to
yyaxis left
ax2=gca;

4 commentaires

Mapete
Mapete le 22 Mai 2022
Thanks for your quick answer.
I have tried your solution, this is how it looks.
How can i get the legends for my axes and the second graph back, as it was in the screenshot i sent before.
You have two independet pairs of (x,y), then the original is suit:
ax2=axes(t);
but add a line before "yyaxis right":
%...
ax1=axes(t);
ax1.YAxis.Visible='off';
yyaxis right
Mapete
Mapete le 22 Mai 2022
Thank you very much!
It worked :)
MJFcoNaN
MJFcoNaN le 26 Mai 2022
:)
ps: I still have concern that overlapping two axes to create a diagram. But it seems that Matlab does not provide two-x & two-y plot function, it is a workaround.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange

Tags

Question posée :

le 21 Mai 2022

Commenté :

Rik
le 7 Juin 2022

Community Treasure Hunt

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

Start Hunting!

Translated by