Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend color is not matching that of curve in figure #975

Closed
Lokinyx opened this issue Oct 18, 2023 · 1 comment · Fixed by #977
Closed

Legend color is not matching that of curve in figure #975

Lokinyx opened this issue Oct 18, 2023 · 1 comment · Fixed by #977
Assignees
Labels
Projects
Milestone

Comments

@Lokinyx
Copy link
Contributor

Lokinyx commented Oct 18, 2023

Example:

a = [0:0.5:5];
b = 2*a.^2 + 3*a -5;
c = 1.2*a.^2+4*a-3;
subplot(1,2,1)
plot(a,b,'-or','MarkerFaceColor','g','LineWidth',2)
xlabel('X'); ylabel('Y'); legend('Curve ','Location','NorthWest')
subplot(1,2,2)
plot(a,c,'--ok','MarkerFaceColor','c','LineWidth',2)
xlabel('X'); ylabel('Y'); legend('Curve 2','Location','NorthWest')

reduced example

a = [0:0.5:5];
b = 2*a.^2 + 3*a -5;
plot(a,b,'-or','MarkerFaceColor','g','LineWidth',2)
legend('Curve ','Location','NorthWest')
@Nelson-numerical-software
Copy link
Collaborator

expected result:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Nelson 2023
DONE in 0.7.10
Development

Successfully merging a pull request may close this issue.

2 participants