Skip to content
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

Control over the numeric x-labels in plot2 #293

Closed
jleben opened this issue May 6, 2012 · 2 comments
Closed

Control over the numeric x-labels in plot2 #293

jleben opened this issue May 6, 2012 · 2 comments

Comments

@jleben
Copy link
Member

jleben commented May 6, 2012

[Issue migrated from SourceForge | ID: 3231540 | Submitted by 'jamshark70']
[http://sourceforge.net/support/tracker.php?aid=3231540]

Currently plot2 uses array indices for the number labels across the bottom of the graph. But, just now I'm making plots of filter response curves using a geometric series of frequencies. The indices displayed in the graph are quite unrelated to the actual x values.

f = Pgeom(20, 1.0136098948796, 512).asStream.all;

// this requires wslib
BLowPass.magResponse(f, 44100, 2000, 1).plot2;

It would be useful in the future to be able to pass 'f' into plot2 for meaningful x-axis labels. If not provided, those labels would default to array indices as is the current behavior.

@jleben
Copy link
Member Author

jleben commented May 6, 2012

[Comment migrated from SourceForge | Submitted by 'jrhb']

It works, as noted in the helpfile:

f = Pgeom(20, 1.0136098948796, 512).asStream.all;

x = BLowPass.magResponse(f, 44100, 2000, 1).plot2;
x.domainSpecs = ControlSpec(1, 20000, \exp, units: "Hz"); // e.g.
x.refresh;

@jleben
Copy link
Member Author

jleben commented May 6, 2012

[Comment migrated from SourceForge | Submitted by 'nobody']

rR5tiA yflmbhafizew, [url=http://vnnzhijbtarm.com/]vnnzhijbtarm[/url], [link=http://mgelcxovndzt.com/]mgelcxovndzt[/link], http://blkxubrbmbmv.com/

@jleben jleben closed this as completed May 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant