Skip to content

Commit befef41

Browse files
Test stereoplot functions before release v1.0 (#6)
* Add 'markerFacecolor' for 'colmap='none' * Fix 'not enough arguments' for 'plot_arc3D.m' * Improve comments
1 parent 01b1cea commit befef41

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

001_stereoplot/SWS_Analysis_BASICS_stereoplot.m

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
410410
disp(' ')
411411
plot_multi = input(['Plot multi-event-analysis results' ...
412412
' (if available)? \n' ...
413-
' [0] no [1] stack [2] SIMW(NN)' ...
413+
' [0] no [1] stack [2] SIMW(NN)' ...
414414
' [3] stack & SIMW(NN) | ']);
415415
if plot_multi>0
416416
RES_multi = SWS_Analysis_BASICS_read_SSresults(...
@@ -660,19 +660,19 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
660660
plotannot = 2; % SE
661661
end
662662

663-
if plotannot==1
663+
if plotannot==1 % NE
664664
text(0.047,-0.047, '5^\circ', 'fontsize',12, 'color',col_inc)
665665
text(0.105,-0.105, '10^\circ', 'fontsize',12, 'color',col_inc)
666666
text(0.168,-0.168, '15^\circ', 'fontsize',12, 'color',col_inc)
667667
elseif plotannot==2 % SE
668668
text(0.040,0.056, '5^\circ', 'fontsize',12, 'color',col_inc)
669669
text(0.105,0.105, '10^\circ', 'fontsize',12, 'color',col_inc)
670670
text(0.175,0.145, '15^\circ', 'fontsize',12, 'color',col_inc)
671-
elseif plotannot==3
671+
elseif plotannot==3 % SW
672672
text(-0.055,0.055, '5^\circ', 'fontsize',12, 'color',col_inc)
673673
text(-0.117,0.117, '10^\circ', 'fontsize',12, 'color',col_inc)
674674
text(-0.180,0.180, '15^\circ', 'fontsize',12, 'color',col_inc)
675-
elseif plotannot==4
675+
elseif plotannot==4 % NW
676676
text(-0.055,-0.055, '5^\circ', 'fontsize',12, 'color',col_inc)
677677
text(-0.117,-0.117, '10^\circ', 'fontsize',12, 'color',col_inc)
678678
text(-0.180,-0.180, '15^\circ', 'fontsize',12, 'color',col_inc)
@@ -687,14 +687,15 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
687687

688688
if lowlim<upplim
689689
if lowlim~=0 || upplim~=360
690-
% first plot whole range in gray as bottom layer
690+
% first plot whole BAZ range in gray as bottom layer
691691
startwedge = 0;
692692
endwedge = 360;
693693
plot_arc3D(deg2rad(startwedge-90), deg2rad(endwedge-90), ...
694694
0, 0, lim_sector, ...
695-
colfill, colfill, 1);
695+
colfill, ...
696+
colfill, 1);
696697

697-
% then plot modelled range again on top in white
698+
% then plot considered BAZ range again on top in white
698699
startwedge = lowlim;
699700
endwedge = upplim;
700701
plot_arc3D(deg2rad(startwedge-90), deg2rad(endwedge-90), ...
@@ -707,25 +708,29 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
707708
% and the other one in the SA region
708709
elseif lowlim>upplim
709710
if lowlim~=0 || upplim~=360
710-
% first plot whole range in gray as bottom layer
711+
% first plot whole BAZ range in gray as bottom layer
711712
startwedge = 0;
712713
endwedge = 360;
713714
plot_arc3D(deg2rad(startwedge-90), deg2rad(endwedge-90), ...
714715
0, 0, lim_sector, ...
716+
colfill, ...
715717
colfill, 1);
716718

717-
% then plot modelled range again on top in white in two steps
719+
% then plot considered BAZ range again on top in white
720+
% in two steps
718721
startwedge = 0;
719722
endwedge = upplim;
720723
plot_arc3D(deg2rad(startwedge-90), deg2rad(endwedge-90), ...
721-
0, 0, lim_sector, ...
722-
[white_value white_value white_value]./256, 1);
724+
0, 0, lim_sector, ...
725+
[white_value white_value white_value]./256, ...
726+
[white_value white_value white_value]./256, 1);
723727

724728
startwedge = lowlim;
725729
endwedge = 360;
726730
plot_arc3D(deg2rad(startwedge-90), deg2rad(endwedge-90), ...
727-
0, 0, lim_sector, ...
728-
[white_value white_value white_value]./256, 1);
731+
0, 0, lim_sector, ...
732+
[white_value white_value white_value]./256, ...
733+
[white_value white_value white_value]./256, 1);
729734
end
730735
end
731736

@@ -737,11 +742,12 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
737742
for KK = 1:1:length(RES_nulls)
738743
if ~isempty(RES_nulls) && fast_col==0
739744
plotm(90-inc_nulls(KK), bazi_nulls(KK), 'o', ...
740-
'color',nullcol, 'MarkerSize',marks, 'linewidth',linewcirc);
745+
'color',nullcol, 'MarkerSize',marks, ...
746+
'linewidth',linewcirc, 'markerFacecolor','w');
741747
elseif ~isempty(RES_nulls) && fast_col==1
742748
plotm(90-inc_nulls(KK), bazi_nulls(KK), 'o', ...
743-
'color','k', 'MarkerSize',marks, 'linewidth',linewcirc, ...
744-
'markerFacecolor','w');
749+
'color','k', 'MarkerSize',marks, ...
750+
'linewidth',linewcirc, 'markerFacecolor','w');
745751
cmap = usecmap;
746752
colormap(cmap);
747753
end
@@ -850,7 +856,7 @@ function SWS_Analysis_BASICS_stereoplot(colmap)
850856
end
851857
end
852858

853-
% no color-coding base on phi
859+
% no color-coding based on phi
854860
else
855861
% single
856862
set(hndl, 'color',splitcol, 'linewidth',linew)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Furthermore you can cite the [Zenodo Doi]() given above.
4040

4141
_Example figures_: Generated with the provided [TEST_data_stereoplot](https://github.com/yvonnefroehlich/sws-visualization-and-modeling/tree/main/001_stereoplot/TEST_data_stereoplot)
4242

43-
![figures_SWS_stereo_README_BFO_orange_TEST](https://user-images.githubusercontent.com/94163266/184113942-68515d2a-33ab-4b13-af21-342f5dbf2bde.png)
43+
![figures_SWS_stereo_README_BFO_orange_TEST](https://user-images.githubusercontent.com/94163266/191190219-8570c195-045f-4ad2-9c57-79e140f8e11d.png)
4444

4545
### **[002_visualization](https://github.com/yvonnefroehlich/sws-visualization-and-modeling/tree/main/002_visualization)**
4646

0 commit comments

Comments
 (0)