Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CyXTraX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RoboCT (Public)
XrayTransformStudies
CyXTraX
Commits
21a6bd9f
Commit
21a6bd9f
authored
5 months ago
by
Simon Wittl
Browse files
Options
Downloads
Patches
Plain Diff
added axes in plots
parent
256b5717
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/01_aRTist_bridge.py
+16
-1
16 additions, 1 deletion
scripts/01_aRTist_bridge.py
scripts/04_mapping.py
+6
-4
6 additions, 4 deletions
scripts/04_mapping.py
temp/mapping.png
+0
-0
0 additions, 0 deletions
temp/mapping.png
with
22 additions
and
5 deletions
scripts/01_aRTist_bridge.py
+
16
−
1
View file @
21a6bd9f
...
...
@@ -4,6 +4,11 @@ from CyXTraX.common import MeshObject
import
numpy
as
np
from
matplotlib
import
pyplot
as
plt
from
pathlib
import
Path
FOLDER
=
Path
(
__file__
)
TEMP_FOLDER
=
FOLDER
.
parent
.
parent
/
'
temp
'
def
main
():
...
...
@@ -41,13 +46,23 @@ def main():
ax1
.
imshow
(
half_rays
)
ax1
.
set_xlabel
(
r
'
$Z$ / mm
'
)
ax1
.
set_ylabel
(
r
'
$\alpha$ / rad
'
)
ax1
.
set_title
(
'
Half Rays
'
)
ax1
.
set_xticks
([
0
,
1000
,
2000
])
ax1
.
set_xticklabels
([
r
'
$-3141.5$
'
,
r
'
$0.$
'
,
r
'
$3141.5$
'
])
ax1
.
set_yticks
([
0
,
1000
,
2000
])
ax1
.
set_yticklabels
([
r
'
$-\pi$
'
,
r
'
$0.$
'
,
r
'
$\pi$
'
])
ax2
=
fig
.
add_subplot
(
122
)
ax2
.
imshow
(
full_rays
)
ax2
.
set_xlabel
(
r
'
$Z$ / mm
'
)
ax2
.
set_ylabel
(
r
'
$\alpha$ / rad
'
)
ax2
.
set_title
(
'
Full Rays
'
)
ax2
.
set_xticks
([
0
,
1000
,
2000
])
ax2
.
set_xticklabels
([
r
'
$-3141.5$
'
,
r
'
$0.$
'
,
r
'
$3141.5$
'
])
ax2
.
set_yticks
([
0
,
1000
,
2000
])
ax2
.
set_yticklabels
([
r
'
$-\pi$
'
,
r
'
$0.$
'
,
r
'
$\pi$
'
])
plt
.
s
how
(
)
plt
.
s
avefig
(
TEMP_FOLDER
/
'
scones.png
'
)
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
scripts/04_mapping.py
+
6
−
4
View file @
21a6bd9f
...
...
@@ -59,7 +59,7 @@ def main():
print
(
f
'
Step
{
i
}
: Value Cylinder
{
values_calc
[
i
]
:
2.2
f
}
\t
/
\t
Value Projection
{
mapped_values
[
i
]
:
2.2
f
}
'
)
fig
=
plt
.
figure
(
figsize
=
(
2
5
,
10
))
fig
=
plt
.
figure
(
figsize
=
(
2
4
,
10
))
subfig1
:
figure
.
Figure
subfig2
:
figure
.
Figure
subfig1
,
subfig2
=
fig
.
subfigures
(
1
,
2
)
...
...
@@ -91,9 +91,11 @@ def main():
ax
.
scatter
(
angles_calc
[
0
,
counter
],
angles_calc
[
1
,
counter
],
c
=
colors
[
counter
])
ax
.
set_xlabel
(
r
'
$z$ / mm
'
)
ax
.
set_ylabel
(
r
'
$\alpha$ / rad
'
)
ax
.
set_xticks
([])
ax
.
set_yticks
([])
ax
.
set_xticks
([
0
,
1000
,
2000
])
ax
.
set_xticklabels
([
r
'
$-3141.5$
'
,
r
'
$0.$
'
,
r
'
$3141.5$
'
])
ax
.
set_yticks
([
0
,
1000
,
2000
])
ax
.
set_yticklabels
([
r
'
$-\pi$
'
,
r
'
$0.$
'
,
r
'
$\pi$
'
])
counter
+=
1
plt
.
tight_layout
()
...
...
This diff is collapsed.
Click to expand it.
temp/mapping.png
+
0
−
0
View replaced file @
256b5717
View file @
21a6bd9f
382 KiB
|
W:
|
H:
363 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment