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

footprint plot in plotxy does not work with beam instance #18

Closed
maurov opened this issue Mar 14, 2016 · 3 comments
Closed

footprint plot in plotxy does not work with beam instance #18

maurov opened this issue Mar 14, 2016 · 3 comments

Comments

@maurov
Copy link

maurov commented Mar 14, 2016

@srio The footprint plot on the optical element does not work with the 'beam' instance, only via file.

This fails:
Shadow.ShadowTools.plotxy(beam, 1, 2, nbins=101, nolost=2, title="Footprint", ref=0)

This works:
Shadow.ShadowTools.plotxy('mirr.01', 1, 2, nbins=101, nolost=2, title="Footprint", ref=0)

This means that one is obliged to write files to look at the footprint.

@lucarebuffi it would be nice to have a 'footprint plot' tab in ShadowOui.

@lucarebuffi
Copy link
Member

In ShadowOui is already implemented. You must choose the option "Mirror" or "All", in the "File to Write Out" combo box in the "Output" tab of the "Advanced Settings", and a new Tab "Footprint" will appear in the plotting area.

screen shot 2016-03-14 at 16 54 48
screen shot 2016-03-14 at 16 56 03

@srio
Copy link
Member

srio commented Mar 14, 2016

Yes, this is one of the problems in python/shadow3. It does not export mirr.xx but only star.xx. At the beginning we thought this was OK, but then we see that mirr.xx is very useful. We will see, but it requires work in the python API, which I did not write :(

However, Luca already implemented the footprint plot I see he's answering this at this very the same time...

@maurov
Copy link
Author

maurov commented Mar 14, 2016

OK, now is clear to me. Thanks for the tip!

@maurov maurov closed this as completed Mar 14, 2016
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

3 participants