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

Include optional colormaps in "nolearn/lasagne/visualize.py" ? #286

Open
jorgdv opened this issue Aug 11, 2016 · 3 comments
Open

Include optional colormaps in "nolearn/lasagne/visualize.py" ? #286

jorgdv opened this issue Aug 11, 2016 · 3 comments

Comments

@jorgdv
Copy link

jorgdv commented Aug 11, 2016

Hi there,

I think that the function visualize.py should include as input an optional colormap parameter, in order to see the plots as each one likes. Now the colormap "gray" is set in the function, so you can't even change it outside.

Best regards

@BenjaminBossan
Copy link
Collaborator

The functions in visualize.py return the plot object. I don't know whether this works, but maybe it's possible to override some attributes and re-draw the images.

If this does not work, it would probably best to be able to pass arbitrary kwargs, since others might want to change other parameters.

@jorgdv
Copy link
Author

jorgdv commented Aug 12, 2016

That was my point. I think it is so much easier to just pass arbitrary arguments, since the output (plot object as you said) is already drawn with gray color map, and I don't think it is possible to override the atributes.

@BenjaminBossan
Copy link
Collaborator

I see a problem though, since there is not always just one plot. E.g., in _plot_head_map, there are 3 subplots, which all could have different parameters. Having a general solution could quickly become a mess. If you see any clean way to do it, please post it and we could implement that solution.

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

2 participants