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

PR: Add new options for font size and bottom edge for inline plot #21566

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

jitseniesen
Copy link
Member

@jitseniesen jitseniesen commented Nov 29, 2023

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)

Add two new options, for the font size and the position of the bottom edge, for inline plots in the IPython console. The reason for this was discussed in issue #19672. Send these options to the Spyder kernels, where they will be used in a partner PR (I hope I'm doing that right, I have never done this before).

When writing the code, I noticed that the (?) icons for the tooltips of some spinboxes (resolution, width, height) was missing, so I added these as well.

The Preferences page now looks like this:

gfxconf-new

For comparison, this is what it looks before the PR:

gfxconf-old

Issue(s) Resolved

Fixes #19672
Depends on spyder-ide/spyder-kernels#477

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: Jitse Niesen

@pep8speaks
Copy link

pep8speaks commented Nov 29, 2023

Hello @jitseniesen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-01-02 19:26:41 UTC

@jitseniesen
Copy link
Member Author

The force-push was to fix a PEP8 style violation.

@jitseniesen jitseniesen changed the title Add new options for font size and bottom edge for inline plot PR: Add new options for font size and bottom edge for inline plot Dec 8, 2023
@ccordoba12 ccordoba12 modified the milestones: v6.0alphaX, v6.0beta1 Dec 30, 2023
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @jitseniesen for your work on this! Small small code style suggestions for you, the rest looks good to me.

Also, please resync our subrepo now that I merged your PR there.

spyder/plugins/ipythonconsole/confpage.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/shell.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/shell.py Outdated Show resolved Hide resolved
jitseniesen and others added 6 commits January 2, 2024 19:23
As suggested in code review.

Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
…r-kernels.git --branch=master --update --force external-deps/spyder-kernels

subrepo:
  subdir:   "external-deps/spyder-kernels"
  merged:   "66576a716"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-kernels.git"
  branch:   "master"
  commit:   "66576a716"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "110b9eb"
@jitseniesen
Copy link
Member Author

Small small code style suggestions for you, the rest looks good to me.

Also, please resync our subrepo now that I merged your PR there.

Done, this should be good to go now if the tests pass.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @jitseniesen!

@ccordoba12 ccordoba12 merged commit a9c0164 into spyder-ide:master Jan 3, 2024
14 checks passed
@jitseniesen jitseniesen deleted the plot-options branch January 3, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing options to control inline plots look
3 participants