Skip to content

[lecture_comparison] Images need review for size on Jupyter Book #26

Closed

Description

@shlff

Hi @mmcky , I find that some inserted figures/pictures in MYST are oversized!

For example, in lecture wald_friedman (left: MYST, right: RST)
Screen Shot 2021-01-03 at 12 13 13 pm

in lecture finite_markov,
Screen Shot 2021-01-03 at 12 16 08 pm

Activity

  1. mmcky commented on Jan 6, 2021

    @mmcky
    Contributor

    Thanks @shlff agreed -- this will be an issue across the spectrum.

    I have found the following settings to work pretty well and are located in the QuantEcon Style Guide -- Figure Sizes for matplotlib generated items.

    Would you mind reviewing each lecture and submitting a PR with some suggested updates?

  2. changed the title [-][lecture_comparison]_some_inserted_figures_are_oversized!!![/-] [+][lecture_comparison] Images need review for size on Jupyter Book[/+] on Jan 6, 2021
  3. shlff commented on Jan 6, 2021

    @shlff
    MemberAuthor

    Thanks @shlff agreed -- this will be an issue across the spectrum.

    I have found the following settings to work pretty well and are located in the QuantEcon Style Guide -- Figure Sizes for matplotlib generated items.

    Would you mind reviewing each lecture and submitting a PR with some suggested updates?

    Thanks, @mmcky . This QE Operation Manual designs standards, which is very helpful for lectures development and exactly what I want to do before. Thank you!

    However, I find the figure size settings mentioned by this guide is for code-generating plots only, but not for inserted figures. Do you think we should add some standards for inserted plots as well?

    I'd love to review these lectures, experiment with different figure sizes and give my comments on them via PR.

  4. mmcky commented on Jan 7, 2021

    @mmcky
    Contributor

    but not for inserted figures. Do you think we should add some standards for inserted plots as well?

    @shlff this is hard to do as the source image may vary in size. So this is largely down to authors to adjust accordingly. I would recommend using :scale: to fill ~0.5-0.7 width of the page in many circumstances

    experiment with different figure sizes and give my comments on them via PR

    Thanks. This experimentation will need to be done in the myst repository as it handles images differently to the jupinx approach to image scalling.

  5. shlff commented on Jan 11, 2021

    @shlff
    MemberAuthor

    Thanks @mmcky . I will create PR to fix this issue in the myst repo after you finish migrating lectures here.

  6. mmcky commented on Jan 13, 2021

    @mmcky
    Contributor

    thanks @shlff you can proceed on a lecture by lecture basis with suggestions for new image sizes now. When you open a PR add [{{ lecture name}}] in the tile and add the tag manual-change so we don't merge it into main yet until rst is frozen.

  7. mmcky commented on Apr 7, 2021

    @mmcky
    Contributor

    I think #108 addresses this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    high-priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions