Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
3c771b2f
Commit
3c771b2f
authored
Aug 23, 2017
by
Theo Steininger
Browse files
Merge branch 'master' of gitlab.mpcdf.mpg.de:ift/NIFTy
parents
9ee541a0
1c1b6377
Pipeline
#17228
passed with stages
in 25 minutes and 7 seconds
Changes
141
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/plotting/descriptors/line.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty.plotting
.plotly_wrapper
import
PlotlyWrapper
from
.
.plotly_wrapper
import
PlotlyWrapper
class
Line
(
PlotlyWrapper
):
...
...
nifty/plotting/descriptors/marker.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty.plotting
.plotly_wrapper
import
PlotlyWrapper
from
.
.plotly_wrapper
import
PlotlyWrapper
class
Marker
(
PlotlyWrapper
):
...
...
nifty/plotting/figures/__init__.py
View file @
3c771b2f
from
figure_2D
import
Figure2D
from
figure_3D
import
Figure3D
from
multi_figure
import
MultiFigure
from
.
figure_2D
import
Figure2D
from
.
figure_3D
import
Figure3D
from
.
multi_figure
import
MultiFigure
nifty/plotting/figures/figure_2D.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
figure_from_plot
import
FigureFromPlot
from
nifty.plotting
.plots
import
Heatmap
,
HPMollweide
,
GLMollweide
from
.
figure_from_plot
import
FigureFromPlot
from
.
.plots
import
Heatmap
,
HPMollweide
,
GLMollweide
class
Figure2D
(
FigureFromPlot
):
...
...
nifty/plotting/figures/figure_3D.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
figure_from_plot
import
FigureFromPlot
from
.figure_from_plot
import
FigureFromPlot
class
Figure3D
(
FigureFromPlot
):
...
...
nifty/plotting/figures/figure_base.py
View file @
3c771b2f
...
...
@@ -2,7 +2,7 @@
import
abc
from
nifty.plotting
.plotly_wrapper
import
PlotlyWrapper
from
.
.plotly_wrapper
import
PlotlyWrapper
class
FigureBase
(
PlotlyWrapper
):
...
...
nifty/plotting/figures/figure_from_plot.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
figure_base
import
FigureBase
from
.figure_base
import
FigureBase
class
FigureFromPlot
(
FigureBase
):
...
...
nifty/plotting/figures/multi_figure.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
builtins
import
map
from
builtins
import
str
import
numpy
as
np
from
nifty
import
dependency_injector
as
gdi
from
figure_base
import
FigureBase
from
figure_3D
import
Figure3D
from
...
import
dependency_injector
as
gdi
from
.
figure_base
import
FigureBase
from
.
figure_3D
import
Figure3D
plotly
=
gdi
.
get
(
'plotly'
)
...
...
nifty/plotting/plotly_wrapper.py
View file @
3c771b2f
from
builtins
import
object
from
abc
import
ABCMeta
,
abstractmethod
from
nifty.nifty_meta
import
NiftyMeta
from
..nifty_meta
import
NiftyMeta
from
future.utils
import
with_metaclass
class
PlotlyWrapper
(
object
):
__metaclass__
=
NiftyMeta
class
PlotlyWrapper
(
with_metaclass
(
NiftyMeta
,
object
)):
@
abstractmethod
def
to_plotly
(
self
):
return
{}
nifty/plotting/plots/__init__.py
View file @
3c771b2f
from
scatter_plots
import
*
from
heatmaps
import
*
from
.
scatter_plots
import
*
from
.
heatmaps
import
*
nifty/plotting/plots/heatmaps/__init__.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
hpmollweide
import
HPMollweide
from
glmollweide
import
GLMollweide
from
heatmap
import
Heatmap
from
.
hpmollweide
import
HPMollweide
from
.
glmollweide
import
GLMollweide
from
.
heatmap
import
Heatmap
nifty/plotting/plots/heatmaps/glmollweide.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty
import
dependency_injector
as
gdi
from
heatmap
import
Heatmap
from
....
import
dependency_injector
as
gdi
from
.
heatmap
import
Heatmap
import
numpy
as
np
from
nifty.plotting
.descriptors
import
Axis
from
..
.descriptors
import
Axis
from
.mollweide_helper
import
mollweide_helper
...
...
nifty/plotting/plots/heatmaps/heatmap.py
View file @
3c771b2f
...
...
@@ -2,9 +2,9 @@
import
numpy
as
np
from
nifty.plotting
.descriptors
import
Axis
from
nifty.plotting
.colormap
import
Colormap
from
nifty.plotting
.plotly_wrapper
import
PlotlyWrapper
from
..
.descriptors
import
Axis
from
..
.colormap
import
Colormap
from
..
.plotly_wrapper
import
PlotlyWrapper
class
Heatmap
(
PlotlyWrapper
):
...
...
nifty/plotting/plots/heatmaps/hpmollweide.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty
import
dependency_injector
as
gdi
from
heatmap
import
Heatmap
from
__future__
import
division
from
....
import
dependency_injector
as
gdi
from
.heatmap
import
Heatmap
import
numpy
as
np
from
nifty.plotting
.descriptors
import
Axis
from
..
.descriptors
import
Axis
from
.mollweide_helper
import
mollweide_helper
...
...
@@ -41,7 +42,7 @@ class HPMollweide(Heatmap):
ptg
=
np
.
empty
((
phi
.
size
,
2
),
dtype
=
np
.
float64
)
ptg
[:,
0
]
=
theta
ptg
[:,
1
]
=
phi
base
=
pyHealpix
.
Healpix_Base
(
int
(
np
.
sqrt
(
x
.
size
/
12
)),
"RING"
)
base
=
pyHealpix
.
Healpix_Base
(
int
(
np
.
sqrt
(
x
.
size
/
/
12
)),
"RING"
)
res
[
mask
]
=
x
[
base
.
ang2pix
(
ptg
)]
return
res
...
...
nifty/plotting/plots/heatmaps/mollweide_helper.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
__future__
import
division
import
numpy
as
np
def
mollweide_helper
(
xsize
):
xsize
=
int
(
xsize
)
ysize
=
int
(
xsize
/
2
)
ysize
=
xsize
/
/
2
res
=
np
.
full
(
shape
=
(
ysize
,
xsize
),
fill_value
=
np
.
nan
,
dtype
=
np
.
float64
)
xc
=
(
xsize
-
1
)
*
0.5
...
...
nifty/plotting/plots/scatter_plots/__init__.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
cartesian_2D
import
Cartesian2D
from
cartesian_3D
import
Cartesian3D
from
geo
import
Geo
from
.
cartesian_2D
import
Cartesian2D
from
.
cartesian_3D
import
Cartesian3D
from
.
geo
import
Geo
nifty/plotting/plots/scatter_plots/cartesian.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
abc
import
abstractmethod
from
scatter_plot
import
ScatterPlot
from
.
scatter_plot
import
ScatterPlot
class
Cartesian
(
ScatterPlot
):
...
...
nifty/plotting/plots/scatter_plots/cartesian_2D.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty.plotting
.descriptors
import
Axis
from
cartesian
import
Cartesian
from
..
.descriptors
import
Axis
from
.
cartesian
import
Cartesian
class
Cartesian2D
(
Cartesian
):
...
...
nifty/plotting/plots/scatter_plots/cartesian_3D.py
View file @
3c771b2f
# -*- coding: utf-8 -*-
from
nifty.plotting
.descriptors
import
Axis
from
cartesian
import
Cartesian
from
..
.descriptors
import
Axis
from
.
cartesian
import
Cartesian
class
Cartesian3D
(
Cartesian
):
...
...
nifty/plotting/plots/scatter_plots/geo.py
View file @
3c771b2f
from
nifty.plotting.descriptors
import
Axis
from
scatter_plot
import
ScatterPlot
from
...descriptors
import
Axis
from
.scatter_plot
import
ScatterPlot
class
Geo
(
ScatterPlot
):
...
...
Prev
1
2
3
4
5
6
7
8
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment