Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit562ed53

Browse files
committed
Verify that genfrac's displaystyle == dfrac.
1 parenta304897 commit562ed53

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎lib/matplotlib/tests/test_mathtext.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,16 @@ def test_operator_space(fig_test, fig_ref):
361361
fig_ref.text(0.1,0.9,r"$\mathrm{sin}^2 \mathrm{\,cos}$")
362362

363363

364+
@check_figures_equal(extensions=["png"])
365+
deftest_genfrac_displaystyle(fig_test,fig_ref):
366+
fig_test.text(0.1,0.1,r"$\dfrac{2x}{3y}$")
367+
368+
thickness=_mathtext.TruetypeFonts.get_underline_thickness(
369+
None,None,fontsize=12,dpi=mpl.rcParamsDefault['figure.dpi'])
370+
fig_ref.text(
371+
0.1,0.1,fr"$\genfrac{{}}{{}}{{{thickness}}}{{0}}{{2x}}{{3y}}$")
372+
373+
364374
deftest_mathtext_fallback_valid():
365375
forfallbackin ['cm','stix','stixsans','None']:
366376
mpl.rcParams['mathtext.fallback']=fallback

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp