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

Fix plotting methods to take varargin (e.g., to slicer or image) to easily make nicer plots. #49

Open
peterTorrione opened this issue Aug 11, 2016 · 0 comments

Comments

@peterTorrione
Copy link
Collaborator

A bunch of objects (e.g. prtRv.plotPdf, plotLogPdf, classifier plots, etc.) all call

prtPlotUtilPlotGriddedEvaledFunction

or some equivalent. It would be nice if we could pass input arguments into that method cleanly. So you could specify, e.g., parameters to slice, or imagesc.

I did this in prtRv.plot so you can do:

close all;
plot(dsPrtPreProc);
hold on;
g = prtRvGmm
g.plotPdf(axis,'slicerLocations',{4,4,[0 20]},'FaceAlpha',0.5);

But it's not ideal - e.g., the first input to plotPdf is the axis limits for some reason. That should be:

g,plotPdf('axisLimits',axis,...)

The generalization of this is not straightforward to me though. Should there be:

prtUtilDefaultImagescVarargin?

Or did we miss the boat here, and we need a

prtPlotUtilPlotGriddedEvaled OBJECT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant