Skip to content

Commit

Permalink
Merge pull request #4510 from mtmccrea/topic-plotter-resamp-domain
Browse files Browse the repository at this point in the history
[classlib] Plotter: correct resampling of domain given fixed Array:series method.
  • Loading branch information
joshpar authored Aug 28, 2019
2 parents 9913cf8 + 27a46ed commit 4950bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Plot {
0.5.dup(size) // put the values in the middle of the plot
} {
domainSpec.unmap(
(domainSpec.minval, domainSpec.minval + (range / (size-1)) .. domainSpec.maxval)
Array.interpolation(size, domainSpec.minval, domainSpec.maxval)
);
}
};
Expand Down

0 comments on commit 4950bbb

Please sign in to comment.