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

Commitb759924

Browse files
authored
Updated path_converters with seed and added it to ext of _backend_agg
1 parent42fb6a2 commitb759924

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎setupext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def get_extensions(self):
395395
ext=Extension(
396396
"matplotlib.backends._backend_agg", [
397397
"src/py_converters.cpp",
398+
"src/path_converters.cpp",
398399
"src/_backend_agg.cpp",
399400
"src/_backend_agg_wrapper.cpp",
400401
])

‎src/path_converters.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,11 @@ class Sketch: SketchBase
10451045
m_last_y(0.0),
10461046
m_has_last(false),
10471047
m_p(0.0),
1048-
m_rand(0)
1048+
m_rand(0),
1049+
/* if scale==0. (e.g. with test), then seed is 0
1050+
that would set previous_seed to 0 which is not what we want.
1051+
*/
1052+
m_seed0( scale!=0 ? get_prng_seed(seed) : 0)
10491053
{
10501054
rewind(0);// re-seeds PRNG with m_seed0 again
10511055
constdouble d_M_PI =3.14159265358979323846;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp