Title: [Bug]: Numbers in words not italic · Issue #29253 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Numbers in words not italic · Issue #29253 · matplotlib/matplotlib
X Title: [Bug]: Numbers in words not italic · Issue #29253 · matplotlib/matplotlib
Description: Bug summary Y labels in plots cannot be displayed in italic if the label contains numbers. While the letters will be italic, the numbers will stay in normal font. Code for reproduction mpl.rcParams['font.family'] = 'Arial' bars = sns.bar...
Open Graph Description: Bug summary Y labels in plots cannot be displayed in italic if the label contains numbers. While the letters will be italic, the numbers will stay in normal font. Code for reproduction mpl.rcParams...
X Description: Bug summary Y labels in plots cannot be displayed in italic if the label contains numbers. While the letters will be italic, the numbers will stay in normal font. Code for reproduction mpl.rcParams...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Numbers in words not italic","articleBody":"### Bug summary\r\n\r\nY labels in plots cannot be displayed in italic if the label contains numbers. While the letters will be italic, the numbers will stay in normal font.\r\n\r\n### Code for reproduction\r\n\r\n```Python\r\nmpl.rcParams['font.family'] = 'Arial'\r\n\r\nbars = sns.barplot(\r\n x='Sample Name',\r\n y='delta',\r\n data=renamed,\r\n palette=custom_palette,\r\n alpha=1,\r\n edgecolor='grey',\r\n errorbar='se',\r\n errcolor='black',\r\n capsize=0.05,\r\n errwidth=1\r\n)\r\n\r\n\r\nsns.stripplot(\r\n x='Sample Name',\r\n y='delta',\r\n data=renamed,\r\n palette=custom_palette,\r\n edgecolor='white',\r\n linewidth=1,\r\n alpha=1,\r\n size=8,\r\n legend=False,\r\n dodge=False,\r\n jitter=0.17\r\n)\r\n\r\nbars.spines['top'].set_visible(False)\r\nbars.spines['right'].set_visible(False)\r\nplt.xticks(rotation=45, ha='right')\r\nplt.ylabel(\"${CYP11B2}$ mRNA (%)\")\r\nplt.xlabel(\"\")\r\nplt.suptitle(\"\")\r\n\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\n\u003cimg width=\"67\" alt=\"image\" src=\"https://github.com/user-attachments/assets/66da76a6-d329-478d-97b3-35d5913b44ba\"\u003e\r\n\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nMac OS Apple M1 Ventura 13.4.1\r\n\r\n### Matplotlib Version\r\n\r\n3.9.2\r\n\r\n### Matplotlib Backend\r\n\r\nmodule://matplotlib_inline.backend_inline\r\n\r\n### Python version\r\n\r\n3.11.3\r\n\r\n### Jupyter version\r\n\r\n6.5.4\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/Sanas-m","@type":"Person","name":"Sanas-m"},"datePublished":"2024-12-07T13:55:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/29253/matplotlib/issues/29253"}
| 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:385586fc-8f6c-a93b-b331-790253ca0d94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B81A:23E45A:1ADD650:2379A0C:6A51D7F7 |
| html-safe-nonce | c7f97350d4b889b86ce21402933d69935d00bc033532de0a17707417c49a9130 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODFBOjIzRTQ1QToxQURENjUwOjIzNzlBMEM6NkE1MUQ3RjciLCJ2aXNpdG9yX2lkIjoiMTA5MTM1NDY3OTIxMDc5Mjk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a4714921529d2ed34b047d8580dc47f88459628499abdf6f7da135318cc155fb |
| hovercard-subject-tag | issue:2724627828 |
| 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/29253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b5c4b1b1c587a67a5bf79f000fa018053544b74dc61fa4cefa8f729dbfd5485/matplotlib/matplotlib/issues/29253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b5c4b1b1c587a67a5bf79f000fa018053544b74dc61fa4cefa8f729dbfd5485/matplotlib/matplotlib/issues/29253 |
| og:image:alt | Bug summary Y labels in plots cannot be displayed in italic if the label contains numbers. While the letters will be italic, the numbers will stay in normal font. Code for reproduction mpl.rcParams... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sanas-m |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width