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

Fixed Bug And Added Facet Controls On General Graphics Dialog. #8718

Merged
merged 8 commits into from
Jan 15, 2024

Conversation

MeSophie
Copy link
Contributor

@MeSophie MeSophie commented Jan 8, 2024

Fixes #8695
@rdstern, @N-thony I have fixed the bug and added facet controls on general graphics dialog. Please have a look.

@MeSophie MeSophie marked this pull request as draft January 8, 2024 09:27
@MeSophie MeSophie marked this pull request as ready for review January 8, 2024 14:18
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeSophie that's really excellent - very well done. This is becoming a wonderful dialog.
a) In the Add Code control I got the arguments wrong for the hline and vline. I assumed we could shorten yintercept to y and xintercept to x. But it seems not. So, in the Add Code, could you give those in full?
b) In the Add Code, could you add a blank, and make that the default? Then the pull-down shows the other possibilities - as you have.
c) The facets seems to work well. When I then look at the facets sub-dialog, it has implemented facets, but has not included the variable I used on the main dialog. I don't know if this could be added. Then the result from facets on the main dialog will be the same as using the sub-dialog?
d) Now a more questionable change. I am not good on design, so you may wish to discuss this suggestion with Antoine first. I would like the Add Code drop-down to be wider, so it is easier to type and correct the code. So more code is visible.
My suggestion is to move the Legend control to where you currently have the Add Code control. And make it a single row, as you have for the Add Code.
Then raise the Geom control a bit and put the Add Code, (on 2 lines) below it. And make the pull down go to the right as far as you can.
Finally I wonder a bit about the "Add Code" label? It adds a plus to the ggplot command - does that have a technical name? If we keep the label Add Code, then what would you give in French? Is it clear. And, if we keep the Add Code, then it needs a colon after it.

@MeSophie
Copy link
Contributor Author

@rdstern I have fixed part a) b) and d) I'm still on part c).
image
Here can we change the label to something like Add code to customise the graph:? It is true that just Add Code is not clear for user.

Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeSophie one small change is that you have yintercept = 5, etc correctly, but (for the first 3 examples of the code that should be instead of the y = 5 and not as well, so could you delete those.
Then I now find the space for the command line is wider than I had thought. As mentioned previously I wonder about moving the Facet and the Legend row down a bit, so the Legend label is where the Add Code label is now.
Then the Add Code checkbox goes underneath the Geoms control and the field that then opens is underneath and goes from the middle right to the right. @lilyclements I wonder if you could look at the layout and see if you agree?
Then I would like to merge, even while you see if item c can be resolved.

@MeSophie
Copy link
Contributor Author

@rdstern please can you have a look at the new changes? Part c) is also fixed.

rdstern
rdstern previously approved these changes Jan 11, 2024
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeSophie I am approving so @N-thony can check and merge. I am writing the help this weekend, on this dialog.
I still would have preferred the Add Code checkbox up one line and the pull down starting below the Add Code, rather than next to it. If that is clear and you are happy to make that small change, then please do. Otherwise it is ok as it is/
.

@MeSophie
Copy link
Contributor Author

@rdstern I made the change on the design. I moved Add Code a little to the right because of the french translation of Plot Options.

rdstern
rdstern previously approved these changes Jan 11, 2024
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MeSophie great. @N-thony over to you to check and hopefully merge.

@N-thony N-thony requested a review from derekagorhom January 12, 2024 05:56
derekagorhom
derekagorhom previously approved these changes Jan 12, 2024
@MeSophie MeSophie dismissed stale reviews from derekagorhom and rdstern via 45a8533 January 12, 2024 09:21
@MeSophie
Copy link
Contributor Author

Sorry @rdstern and @derekagorhom there was a small bug with facet. I fixed it please can you check the change again?

@derekagorhom
Copy link
Contributor

derekagorhom commented Jan 12, 2024

@rdstern, problem with facet @MeSophie found is that the ~ operator was after the parameter and it was producing an error, I think that is fixed now.

Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still seems ok, so approving again. @N-thony back to you.

@N-thony N-thony merged commit 468667a into IDEMSInternational:master Jan 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct small bug and add 2 new features to the General Graphics dialog.
4 participants