Comments (6)
I hope you have seen the documentation on xrt plots.
What is plotted as 1D and 2D distributions are not the original beams but their histograms. If you want to directly work with beams, XYCPlot is useless, and inversely, if you want the facilities of XYCPlot, you shouldn't work directly with beams. The option withAmplitudes=True enables complex field amplitudes, this is only needed for special applications like wave propagation. What is histogrammed and plotted are intensities, not amplitudes.
If you have a defined idea on what you want to get and cannot get it, just ask again.
from xrt.
from xrt.
See this part of documentation.
In particular, if you put your wanted property as c-axis (color axis), you get it as:
x = yourPlot.caxis.binCenters
y = yourPlot.caxis.total1D
You can find more usage examples if you search the supplied examples for afterScript
.
from xrt.
from xrt.
can I skip the plotting procedure of the XYCplot and directly extract the properties in it?
Yes, see the "Tip" here.
When I run the script in Spyder or Jupyter notebook, it shows empty plots.
See a paragraph about Spyder here.
Note also that the documentation is searchable.
from xrt.
from xrt.
Related Issues (20)
- Example for distorted surfaces HOT 2
- how to set the divergence of the source HOT 3
- Problem with run_ray_tracing HOT 24
- a bug about xrtqook HOT 5
- Python created from XRTGlow show different results HOT 6
- simulation of VLS HOT 6
- build spherical mirror from elliptical optic HOT 4
- simulation of Hyperboloid mirror HOT 3
- How to change the screen size or resolution when viewing a small focus image? HOT 2
- problem with xrtBentXtal in Laue geometry HOT 5
- plot error with matplotlib 3.8.2 HOT 6
- ParabolicalMirrorParam optics with figure error HOT 3
- Some doubts about custom faceted lenses HOT 4
- xyz_to_param and param_to_xyz for class ParabolicalMirrorParam HOT 2
- How to simulate nested shells HOT 9
- Problems encountered while running trace examples HOT 5
- Error when run xrtQook on Nvidia V100 GPU node
- How to add a caliber setting!
- Some doubts about the energy setting of X-ray sources HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xrt.