Title: [ENH]: Add default kwargs values if figure.suptitle(t, **kwargs) to rcParams and inherit from there. · Issue #24090 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Add default kwargs values if figure.suptitle(t, **kwargs) to rcParams and inherit from there. · Issue #24090 · matplotlib/matplotlib
X Title: [ENH]: Add default kwargs values if figure.suptitle(t, **kwargs) to rcParams and inherit from there. · Issue #24090 · matplotlib/matplotlib
Description: Problem Problem summary I cannot change the default location of a figure.suptitle() through the rcParams as I can with the title location of the axis title. Origin/background I am tweaking the default settings of Matplotlib to create plo...
Open Graph Description: Problem Problem summary I cannot change the default location of a figure.suptitle() through the rcParams as I can with the title location of the axis title. Origin/background I am tweaking the defa...
X Description: Problem Problem summary I cannot change the default location of a figure.suptitle() through the rcParams as I can with the title location of the axis title. Origin/background I am tweaking the defa...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24090
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Add default kwargs values if figure.suptitle(t, **kwargs) to rcParams and inherit from there.","articleBody":"### Problem\r\n\r\nProblem summary\r\n===========\r\n\r\nI cannot change the default location of a ``figure.suptitle()`` through the ``rcParams`` as I can with the title location of the axis title.\r\n\r\nOrigin/background\r\n===========\r\n\r\nI am tweaking the default settings of Matplotlib to create plots that in appearance match the corporate styling. Most changes have been made by re-setting the default values of certain ``rcParams``.\r\n\r\nOne of the requirements is the left-alignment of titles of graphs. For the axis title I can set ``rcParams['axes.titlelocation']`` to ``'left'``, as itdefaults to ``center``. I would like to do something similar to the figure's suptitle.\r\n\r\nCurrently, setting the figure's suptitle only takes defaults ``rcParams['figure.titlesize']`` and ``rcParams['figure.titleweight']``. The other parameters for location and alignment of the suptitle are defaulted in the method's argument definition. My desire is to add these to ``rcParams`` as well, and refer hereto as default.\r\n\r\n### Proposed solution\r\n\r\nE.g. expand the ``rcParams`` with:\r\n\r\n```\r\n{\r\n 'figure.titleloc_x': 0.5,\r\n 'figure.titleloc_y': 0.98,\r\n 'figure.titleha': 'center',\r\n 'figure.titleva': 'center'\r\n}\r\n```\r\n\r\nAnd then use these defaults in ``figure.suptitle()``, very similar to how ``rcParams['figure.titlesize']`` and ``rcParams['figure.titleweight']`` are already used as default values.","author":{"url":"https://github.com/frank-klein-schaarsberg-wb","@type":"Person","name":"frank-klein-schaarsberg-wb"},"datePublished":"2022-10-04T09:14:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/24090/matplotlib/issues/24090"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7f72dbd-a25a-2af8-0e01-435d8148658c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A50:2D9A30:25F09C:34B32F:6A546D0C |
| html-safe-nonce | f37db7f700140278ecefbfcf65d796c7174d493b405186a086416e12a16a6b38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTUwOjJEOUEzMDoyNUYwOUM6MzRCMzJGOjZBNTQ2RDBDIiwidmlzaXRvcl9pZCI6IjQ0NDE1MjUzMzg3MDM2ODY5MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cbb3c83db69ccc09d3898fb222c6b5114084066c09cf67c73f4ff343c498eb43 |
| hovercard-subject-tag | issue:1395923769 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24090/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57db65731846bae84b93452e5c083c2ff3b6b7b1e42b91a3d2e5c5798bf60ac6/matplotlib/matplotlib/issues/24090 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57db65731846bae84b93452e5c083c2ff3b6b7b1e42b91a3d2e5c5798bf60ac6/matplotlib/matplotlib/issues/24090 |
| og:image:alt | Problem Problem summary I cannot change the default location of a figure.suptitle() through the rcParams as I can with the title location of the axis title. Origin/background I am tweaking the defa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frank-klein-schaarsberg-wb |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width