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

Appearance settings

Add switch to specify major/minor in axes.arrayTicks() #6829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 4, 2024
Prev Previous commit
Next Next commit
Use Lib.psuedoRandom(), not Math.random()
  • Loading branch information
ayjayt committed Jan 3, 2024
commit 365231d4c81dd970f563e49afbcc8be191809822
3 changes: 2 additions & 1 deletion 3 test/jasmine/tests/axes_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8229,7 +8229,8 @@ fdescribe('test tickmode calculator', function() {
standardConfig = {tickmode: 'array', ticks: 'inside', ticklen: 1, showticklabels: false};

// Number of ticks will be random
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use Lib.pseudoRandom as well as Lib.seedPseudoRandom as it applied by other jasmine tests.

var n = Math.floor(Math.random() * 99) + 1;
Lib.seedPseudoRandom();
var n = (Lib.pseudoRandom() * 99) + 1;
tickVals = [];
for(let i = 0; i <= n; i++) {
tickVals.push(i);
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.