From f82b930584df4c129400c2da60ff2b9bec3fc8b1 Mon Sep 17 00:00:00 2001 From: Klaus <klaus.boehnlein@tu-dresden.de> Date: Fri, 28 Jan 2022 15:58:58 +0100 Subject: [PATCH] backup --- src/2DPhaseDiagram_PlotScriptV2.py | 30 +- src/2DPhaseDiagram_Ratios_PlotScript.py | 223 +++- src/PhaseDiagram_PlotScriptV2.py | 330 ++++- src/PhaseDiagram_PlotScriptV3.py | 1460 +++++++++++++++++++++++ src/Plot-Energy_Axial.py | 422 +++++++ src/Plot_Curvature_Alpha.py | 5 +- src/Plot_Curvature_TransitionArea.py | 815 +++++++++++++ src/Plotq12.py | 9 +- 8 files changed, 3247 insertions(+), 47 deletions(-) create mode 100644 src/PhaseDiagram_PlotScriptV3.py create mode 100644 src/Plot-Energy_Axial.py create mode 100644 src/Plot_Curvature_TransitionArea.py diff --git a/src/2DPhaseDiagram_PlotScriptV2.py b/src/2DPhaseDiagram_PlotScriptV2.py index 70f27ad2..7a7d180f 100644 --- a/src/2DPhaseDiagram_PlotScriptV2.py +++ b/src/2DPhaseDiagram_PlotScriptV2.py @@ -16,21 +16,23 @@ case = 3 # drawLine = False -curvature = 0 +curvature = 1 + +discreteColor = True gamma = 'infinity' -gamma = '0' -gamma = 0.05 -# gamma = 0.25 -gamma = 0.5 -gamma = 0.75 -gamma = 1.0 -gamma = 1.25 -gamma = 1.5 +# gamma = '0' +# gamma = 0.05 +# # gamma = 0.25 +# gamma = 0.5 +# gamma = 0.75 +# gamma = 1.0 +# gamma = 1.25 +# gamma = 1.5 # gamma = 1.5 -smallerRegion = True +smallerRegion = False # create a new 'XML Structured Grid Reader' # if case == 1: @@ -41,7 +43,7 @@ if gamma == '0': # if case == 2: elif gamma == 'infinity': - phaseDiagram2DGamma_infinity55_4000spvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram2DGamma_infinity_4000P.vts']) + # phaseDiagram2DGamma_infinity55_4000spvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram2DGamma_infinity_4000P.vts']) phaseDiagram2DGamma_infinity55_4000spvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram2DGamma_infinity.vts']) else : @@ -1487,6 +1489,12 @@ if curvature == 1 : transform1Display.RescaleTransferFunctionToDataRange(False, True) + if discreteColor: + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + curvatureLUT.ApplyPreset('KAAMS Step', True) + # invert the transfer function + curvatureLUT.InvertTransferFunction() + # if case == 3: diff --git a/src/2DPhaseDiagram_Ratios_PlotScript.py b/src/2DPhaseDiagram_Ratios_PlotScript.py index be778515..5120d089 100644 --- a/src/2DPhaseDiagram_Ratios_PlotScript.py +++ b/src/2DPhaseDiagram_Ratios_PlotScript.py @@ -16,13 +16,13 @@ case = 3 # drawLine = False -prestrain = 1 - -gamma = 'infinity' - +# prestrain = 0 +# gamma = 'infinity' +# angles = 1 +case = 1 # 1: prestrain , 2: elasticRatio , 3: angle @@ -303,7 +303,7 @@ renderView1.AxesGrid.ZLabelFontSize = 45 # -------------------------------------------------------------------------------------------------------------------------------------------- -if prestrain: +if case == 1: #prestrain # set scalar coloring ColorBy(transform1Display, ('POINTS', 'prestrainRatio')) # get color transfer function/color map for 'prestrainRatio' @@ -470,7 +470,7 @@ if prestrain: # Properties modified on prestrainRatioLUTColorBar prestrainRatioLUTColorBar.HorizontalTitle = 1 -else: +elif case == 2: #elasticRatio # get color transfer function/color map for 'elasticRatio' elasticRatioLUT = GetColorTransferFunction('elasticRatio') @@ -553,6 +553,210 @@ else: # Properties modified on elasticRatioLUTColorBar elasticRatioLUTColorBar.HorizontalTitle = 1 + # invert the transfer function + elasticRatioLUT.InvertTransferFunction() + +else: #angle + + # set scalar coloring + ColorBy(transform1Display, ('POINTS', 'angles')) + + + + # show color bar/color legend + transform1Display.SetScalarBarVisibility(renderView1, True) + + # update the view to ensure updated data information + renderView1.Update() + + # toggle 3D widget visibility (only when running from the GUI) + Hide3DWidgets(proxy=transform1.Transform) + + # reset view to fit data + renderView1.ResetCamera() + + # change representation type + transform1Display.SetRepresentationType('Point Gaussian') + + # Properties modified on transform1Display + transform1Display.ShaderPreset = 'Plain circle' + + # set scalar coloring + ColorBy(transform1Display, ('POINTS', 'angles')) + + # Hide the scalar bar for this color map if no visible data is colored by it. + HideScalarBarIfNotNeeded(typeLUT, renderView1) + + # rescale color and/or opacity maps used to include current data range + transform1Display.RescaleTransferFunctionToDataRange(True, False) + + # show color bar/color legend + transform1Display.SetScalarBarVisibility(renderView1, True) + + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + anglesLUT.InterpretValuesAsCategories = 0 + anglesLUT.AnnotationsInitialized = 0 + anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 + anglesLUT.RescaleOnVisibilityChange = 0 + anglesLUT.EnableOpacityMapping = 0 + anglesLUT.RGBPoints = [0.0, 0.001462, 0.000466, 0.013866, 0.006160663193689554, 0.002258, 0.001295, 0.018331, 0.012319755591052443, 0.003279, 0.002305, 0.023708, 0.018480418784742, 0.004512, 0.00349, 0.029965, 0.024639511182104886, 0.00595, 0.004843, 0.03713, 0.03080017437579444, 0.007588, 0.006356, 0.044973, 0.03695926677315698, 0.009426, 0.008022, 0.052844, 0.043119929966846535, 0.011465, 0.009828, 0.06075, 0.04928059316053644, 0.013708, 0.011771, 0.068667, 0.05543968555789898, 0.016156, 0.01384, 0.076603, 0.061600348751588534, 0.018815, 0.016026, 0.084584, 0.06775944114895142, 0.021692, 0.01832, 0.09261, 0.07392010434264097, 0.024792, 0.020715, 0.100676, 0.08007919674000387, 0.028123, 0.023201, 0.108787, 0.08623985993369342, 0.031696, 0.025765, 0.116965, 0.09240052312738298, 0.03552, 0.028397, 0.125209, 0.09855961552474586, 0.039608, 0.03109, 0.133515, 0.10472027871843542, 0.04383, 0.03383, 0.141886, 0.1108793711157983, 0.048062, 0.036607, 0.150327, 0.11704003430948787, 0.05232, 0.039407, 0.158841, 0.1231991267068504, 0.056615, 0.04216, 0.167446, 0.12935978990053995, 0.060949, 0.044794, 0.176129, 0.13552045309422986, 0.06533, 0.047318, 0.184892, 0.1416795454915924, 0.069764, 0.049726, 0.193735, 0.14784020868528194, 0.074257, 0.052017, 0.20266, 0.15399930108264484, 0.078815, 0.054184, 0.211667, 0.1601599642763344, 0.083446, 0.056225, 0.220755, 0.16631905667369729, 0.088155, 0.058133, 0.229922, 0.17247971986738683, 0.092949, 0.059904, 0.239164, 0.17863881226474973, 0.097833, 0.061531, 0.248477, 0.18479947545843928, 0.102815, 0.06301, 0.257854, 0.19096013865212885, 0.107899, 0.064335, 0.267289, 0.19711923104949172, 0.113094, 0.065492, 0.276784, 0.20327989424318127, 0.118405, 0.066479, 0.286321, 0.20943898664054383, 0.123833, 0.067295, 0.295879, 0.21559964983423338, 0.12938, 0.067935, 0.305443, 0.22175874223159628, 0.135053, 0.068391, 0.315, 0.22791940542528583, 0.140858, 0.068654, 0.324538, 0.23408006861897537, 0.146785, 0.068738, 0.334011, 0.24023916101633827, 0.152839, 0.068637, 0.343404, 0.24639982421002782, 0.159018, 0.068354, 0.352688, 0.2525589166073907, 0.165308, 0.067911, 0.361816, 0.25871957980108024, 0.171713, 0.067305, 0.370771, 0.26487867219844313, 0.178212, 0.066576, 0.379497, 0.2710393353921327, 0.184801, 0.065732, 0.387973, 0.2771999985858223, 0.19146, 0.064818, 0.396152, 0.2833590909831848, 0.198177, 0.063862, 0.404009, 0.2895197541768747, 0.204935, 0.062907, 0.411514, 0.29567884657423726, 0.211718, 0.061992, 0.418647, 0.3018395097679268, 0.218512, 0.061158, 0.425392, 0.3079986021652897, 0.225302, 0.060445, 0.431742, 0.31415926535897926, 0.232077, 0.059889, 0.437695, 0.3203199285526688, 0.238826, 0.059517, 0.443256, 0.3264790209500317, 0.245543, 0.059352, 0.448436, 0.33263968414372125, 0.25222, 0.059415, 0.453248, 0.33879877654108415, 0.258857, 0.059706, 0.45771, 0.34495943973477367, 0.265447, 0.060237, 0.46184, 0.35111853213213656, 0.271994, 0.060994, 0.46566, 0.35727919532582614, 0.278493, 0.061978, 0.46919, 0.36343985851951566, 0.284951, 0.063168, 0.472451, 0.36959895091687855, 0.291366, 0.064553, 0.475462, 0.37575961411056813, 0.29774, 0.066117, 0.478243, 0.38191870650793064, 0.304081, 0.067835, 0.480812, 0.3880793697016202, 0.310382, 0.069702, 0.483186, 0.3942384620989831, 0.316654, 0.07169, 0.48538, 0.4003991252926727, 0.322899, 0.073782, 0.487408, 0.4065597884863622, 0.329114, 0.075972, 0.489287, 0.4127188808837251, 0.335308, 0.078236, 0.491024, 0.4188795440774147, 0.341482, 0.080564, 0.492631, 0.4250386364747776, 0.347636, 0.082946, 0.494121, 0.4311992996684671, 0.353773, 0.085373, 0.495501, 0.43735839206582966, 0.359898, 0.087831, 0.496778, 0.44351905525951957, 0.366012, 0.090314, 0.49796, 0.4496797184532091, 0.372116, 0.092816, 0.499053, 0.45583881085057165, 0.378211, 0.095332, 0.500067, 0.46199947404426156, 0.384299, 0.097855, 0.501002, 0.46815856644162407, 0.390384, 0.100379, 0.501864, 0.47431922963531364, 0.396467, 0.102902, 0.502658, 0.48047832203267654, 0.402548, 0.10542, 0.503386, 0.48663898522636606, 0.408629, 0.10793, 0.504052, 0.49279807762372896, 0.414709, 0.110431, 0.504662, 0.49895874081741853, 0.420791, 0.11292, 0.505215, 0.5051194040111081, 0.426877, 0.115395, 0.505714, 0.511278496408471, 0.432967, 0.117855, 0.50616, 0.5174391596021605, 0.439062, 0.120298, 0.506555, 0.5235982519995234, 0.445163, 0.122724, 0.506901, 0.5297589151932129, 0.451271, 0.125132, 0.507198, 0.5359180075905755, 0.457386, 0.127522, 0.507448, 0.5420786707842654, 0.463508, 0.129893, 0.507652, 0.5482393339779547, 0.46964, 0.132245, 0.507809, 0.5543984263753176, 0.47578, 0.134577, 0.507921, 0.560559089569007, 0.481929, 0.136891, 0.507989, 0.5667181819663699, 0.488088, 0.139186, 0.508011, 0.5728788451600595, 0.494258, 0.141462, 0.507988, 0.5790379375574224, 0.500438, 0.143719, 0.50792, 0.585198600751112, 0.506629, 0.145958, 0.507806, 0.5913592639448015, 0.512831, 0.148179, 0.507648, 0.5975183563421644, 0.519045, 0.150383, 0.507443, 0.6036790195358539, 0.52527, 0.152569, 0.507192, 0.6098381119332165, 0.531507, 0.154739, 0.506895, 0.6159987751269064, 0.537755, 0.156894, 0.506551, 0.6221578675242689, 0.544015, 0.159033, 0.506159, 0.6283185307179585, 0.550287, 0.161158, 0.505719, 0.6344791939116484, 0.556571, 0.163269, 0.50523, 0.6406382863090109, 0.562866, 0.165368, 0.504692, 0.6467989495027004, 0.569172, 0.167454, 0.504105, 0.6529580419000633, 0.57549, 0.16953, 0.503466, 0.6591187050937529, 0.581819, 0.171596, 0.502777, 0.6652777974911158, 0.588158, 0.173652, 0.502035, 0.6714384606848054, 0.594508, 0.175701, 0.501241, 0.677599123878495, 0.600868, 0.177743, 0.500394, 0.6837582162758579, 0.607238, 0.179779, 0.499492, 0.6899188794695473, 0.613617, 0.181811, 0.498536, 0.6960779718669102, 0.620005, 0.18384, 0.497524, 0.7022386350605995, 0.626401, 0.185867, 0.496456, 0.7083977274579624, 0.632805, 0.187893, 0.495332, 0.7145583906516519, 0.639216, 0.189921, 0.49415, 0.7207190538453414, 0.645633, 0.191952, 0.49291, 0.7268781462427043, 0.652056, 0.193986, 0.491611, 0.7330388094363939, 0.658483, 0.196027, 0.490253, 0.7391979018337568, 0.664915, 0.198075, 0.488836, 0.7453585650274464, 0.671349, 0.200133, 0.487358, 0.7515176574248092, 0.677786, 0.202203, 0.485819, 0.7576783206184988, 0.684224, 0.204286, 0.484219, 0.7638389838121884, 0.690661, 0.206384, 0.482558, 0.7699980762095512, 0.697098, 0.208501, 0.480835, 0.7761587394032408, 0.703532, 0.210638, 0.479049, 0.7823178318006033, 0.709962, 0.212797, 0.477201, 0.7884784949942932, 0.716387, 0.214982, 0.47529, 0.7946375873916561, 0.722805, 0.217194, 0.473316, 0.8007982505853454, 0.729216, 0.219437, 0.471279, 0.8069573429827082, 0.735616, 0.221713, 0.46918, 0.8131180061763977, 0.742004, 0.224025, 0.467018, 0.8192786693700873, 0.748378, 0.226377, 0.464794, 0.8254377617674502, 0.754737, 0.228772, 0.462509, 0.8315984249611398, 0.761077, 0.231214, 0.460162, 0.8377575173585023, 0.767398, 0.233705, 0.457755, 0.8439181805521923, 0.773695, 0.236249, 0.455289, 0.8500772729495552, 0.779968, 0.238851, 0.452765, 0.8562379361432443, 0.786212, 0.241514, 0.450184, 0.8623985993369342, 0.792427, 0.244242, 0.447543, 0.8685576917342971, 0.798608, 0.24704, 0.444848, 0.8747183549279863, 0.804752, 0.249911, 0.442102, 0.8808774473253492, 0.810855, 0.252861, 0.439305, 0.8870381105190391, 0.816914, 0.255895, 0.436461, 0.8931972029164016, 0.822926, 0.259016, 0.433573, 0.8993578661100912, 0.828886, 0.262229, 0.430644, 0.9055185293037807, 0.834791, 0.26554, 0.427671, 0.9116776217011436, 0.840636, 0.268953, 0.424666, 0.9178382848948332, 0.846416, 0.272473, 0.421631, 0.9239973772921961, 0.852126, 0.276106, 0.418573, 0.9301580404858857, 0.857763, 0.279857, 0.415496, 0.9363171328832481, 0.86332, 0.283729, 0.412403, 0.942477796076938, 0.868793, 0.287728, 0.409303, 0.9486384592706273, 0.874176, 0.291859, 0.406205, 0.9547975516679902, 0.879464, 0.296125, 0.403118, 0.9609582148616801, 0.884651, 0.30053, 0.400047, 0.9671173072590427, 0.889731, 0.305079, 0.397002, 0.9732779704527321, 0.8947, 0.309773, 0.393995, 0.979437062850095, 0.899552, 0.314616, 0.391037, 0.9855977260437846, 0.904281, 0.31961, 0.388137, 0.9917583892374742, 0.908884, 0.324755, 0.385308, 0.9979174816348371, 0.913354, 0.330052, 0.382563, 1.0040781448285265, 0.917689, 0.3355, 0.379915, 1.0102372372258892, 0.921884, 0.341098, 0.377376, 1.0163979004195791, 0.925937, 0.346844, 0.374959, 1.022556992816942, 0.929845, 0.352734, 0.372677, 1.0287176560106313, 0.933606, 0.358764, 0.370541, 1.034878319204321, 0.937221, 0.364929, 0.368567, 1.0410374116016838, 0.940687, 0.371224, 0.366762, 1.047198074795373, 0.944006, 0.377643, 0.365136, 1.053357167192736, 0.94718, 0.384178, 0.363701, 1.0595178303864259, 0.95021, 0.39082, 0.362468, 1.0656769227837886, 0.953099, 0.397563, 0.361438, 1.071837585977478, 0.955849, 0.4044, 0.360619, 1.0779982491711675, 0.958464, 0.411324, 0.360014, 1.0841573415685304, 0.960949, 0.418323, 0.35963, 1.09031800476222, 0.96331, 0.42539, 0.359469, 1.096477097159583, 0.965549, 0.432519, 0.359529, 1.1026377603532722, 0.967671, 0.439703, 0.35981, 1.108796852750635, 0.96968, 0.446936, 0.360311, 1.114957515944325, 0.971582, 0.45421, 0.36103, 1.121116608341688, 0.973381, 0.46152, 0.361965, 1.127277271535377, 0.975082, 0.468861, 0.363111, 1.1334379347290668, 0.97669, 0.476226, 0.364466, 1.1395970271264295, 0.97821, 0.483612, 0.366025, 1.145757690320119, 0.979645, 0.491014, 0.367783, 1.1519167827174819, 0.981, 0.498428, 0.369734, 1.1580774459111713, 0.982279, 0.505851, 0.371874, 1.164236538308534, 0.983485, 0.51328, 0.374198, 1.170397201502224, 0.984622, 0.520713, 0.376698, 1.1765578646959134, 0.985693, 0.528148, 0.379371, 1.182716957093276, 0.9867, 0.535582, 0.38221, 1.188877620286966, 0.987646, 0.543015, 0.38521, 1.1950367126843289, 0.988533, 0.550446, 0.388365, 1.201197375878018, 0.989363, 0.557873, 0.391671, 1.2073564682753808, 0.990138, 0.565296, 0.395122, 1.2135171314690707, 0.990871, 0.572706, 0.398714, 1.21967779466276, 0.991558, 0.580107, 0.402441, 1.2258368870601228, 0.992196, 0.587502, 0.406299, 1.2319975502538125, 0.992785, 0.594891, 0.410283, 1.2381566426511754, 0.993326, 0.602275, 0.41439, 1.2443173058448649, 0.993834, 0.609644, 0.418613, 1.2504763982422278, 0.994309, 0.616999, 0.42295, 1.2566370614359172, 0.994738, 0.62435, 0.427397, 1.262797724629607, 0.995122, 0.631696, 0.431951, 1.2689568170269698, 0.99548, 0.639027, 0.436607, 1.275117480220659, 0.99581, 0.646344, 0.441361, 1.2812765726180217, 0.996096, 0.653659, 0.446213, 1.2874372358117117, 0.996341, 0.660969, 0.45116, 1.2935963282090743, 0.99658, 0.668256, 0.456192, 1.2997569914027638, 0.996775, 0.675541, 0.461314, 1.3059176545964537, 0.996925, 0.682828, 0.466526, 1.3120767469938164, 0.997077, 0.690088, 0.471811, 1.3182374101875058, 0.997186, 0.697349, 0.477182, 1.3243965025848687, 0.997254, 0.704611, 0.482635, 1.3305571657785582, 0.997325, 0.711848, 0.488154, 1.3367162581759209, 0.997351, 0.719089, 0.493755, 1.3428769213696108, 0.997351, 0.726324, 0.499428, 1.3490375845633003, 0.997341, 0.733545, 0.505167, 1.355196676960663, 0.997285, 0.740772, 0.510983, 1.3613573401543528, 0.997228, 0.747981, 0.516859, 1.3675164325517157, 0.997138, 0.75519, 0.522806, 1.3736770957454048, 0.997019, 0.762398, 0.528821, 1.3798361881427677, 0.996898, 0.769591, 0.534892, 1.3859968513364576, 0.996727, 0.776795, 0.541039, 1.3921575145301468, 0.996571, 0.783977, 0.547233, 1.3983166069275097, 0.996369, 0.791167, 0.553499, 1.4044772701211992, 0.996162, 0.798348, 0.55982, 1.410636362518562, 0.995932, 0.805527, 0.566202, 1.4167970257122517, 0.99568, 0.812706, 0.572645, 1.4229561181096146, 0.995424, 0.819875, 0.57914, 1.4291167813033039, 0.995131, 0.827052, 0.585701, 1.4352758737006668, 0.994851, 0.834213, 0.592307, 1.4414365368943567, 0.994524, 0.841387, 0.598983, 1.4475972000880457, 0.994222, 0.84854, 0.605696, 1.4537562924854086, 0.993866, 0.855711, 0.612482, 1.4599169556790985, 0.993545, 0.862859, 0.619299, 1.4660760480764612, 0.99317, 0.870024, 0.626189, 1.4722367112701507, 0.992831, 0.877168, 0.633109, 1.4783958036675136, 0.99244, 0.88433, 0.640099, 1.4845564668612032, 0.992089, 0.89147, 0.647116, 1.4907171300548927, 0.991688, 0.898627, 0.654202, 1.4968762224522556, 0.991332, 0.905763, 0.661309, 1.503036885645945, 0.99093, 0.912915, 0.668481, 1.5091959780433077, 0.99057, 0.920049, 0.675675, 1.5153566412369976, 0.990175, 0.927196, 0.682926, 1.5215157336343605, 0.989815, 0.934329, 0.690198, 1.5276763968280496, 0.989434, 0.94147, 0.697519, 1.5338370600217395, 0.989077, 0.948604, 0.704863, 1.5399961524191024, 0.988717, 0.955742, 0.712242, 1.5461568156127916, 0.988367, 0.962878, 0.719649, 1.5523159080101545, 0.988033, 0.970012, 0.727077, 1.5584765712038442, 0.987691, 0.977154, 0.734536, 1.564635663601207, 0.987387, 0.984288, 0.742002, 1.5707963267948966, 0.987053, 0.991438, 0.749504] + anglesLUT.UseLogScale = 0 + anglesLUT.ColorSpace = 'RGB' + anglesLUT.UseBelowRangeColor = 0 + anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] + anglesLUT.UseAboveRangeColor = 0 + anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] + anglesLUT.NanColor = [0.0, 1.0, 0.0] + anglesLUT.NanOpacity = 1.0 + anglesLUT.Discretize = 1 + anglesLUT.NumberOfTableValues = 256 + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.HSVWrap = 0 + anglesLUT.VectorComponent = 0 + anglesLUT.VectorMode = 'Magnitude' + anglesLUT.AllowDuplicateScalars = 1 + anglesLUT.Annotations = [] + anglesLUT.ActiveAnnotatedValues = [] + anglesLUT.IndexedColors = [] + anglesLUT.IndexedOpacities = [] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.8602941036224365, 0.5, 0.0, 0.33589355211648514, 0.625, 0.5, 0.0, 0.5680552565701278, 0.6691176295280457, 0.5, 0.0, 1.0471451860825267, 0.8676470518112183, 0.5, 0.0, 1.15586894219242, 0.6911764740943909, 0.5, 0.0, 1.5707963267948966, 0.8014705777168274, 0.5, 0.0] + anglesPWF.AllowDuplicateScalars = 1 + anglesPWF.UseLogScale = 0 + anglesPWF.ScalarRangeInitialized = 1 + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + anglesLUT.ApplyPreset('Cool to Warm', True) + + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['', ''] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0] + anglesLUT.IndexedOpacities = [1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', ''] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '', ''] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '1.5707963267948966', ''] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '1.5707963267948966', '$\\pi/2$', '', ''] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '1.5707963267948966', '$\\pi/2$', '0,785398163', ''] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '1.5707963267948966', '$\\pi/2$', '0,785398163', '$\\pi/4$'] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['0', '0', '1.5707963267948966', '$\\pi/2$', '0.785398163', '$\\pi/4$'] + + # get color legend/bar for anglesLUT in view renderView1 + anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1) + anglesLUTColorBar.AutoOrient = 1 + anglesLUTColorBar.Orientation = 'Vertical' + anglesLUTColorBar.WindowLocation = 'LowerRightCorner' + anglesLUTColorBar.Position = [0.89, 0.02] + anglesLUTColorBar.Title = 'angles' + anglesLUTColorBar.ComponentTitle = '' + anglesLUTColorBar.TitleJustification = 'Centered' + anglesLUTColorBar.HorizontalTitle = 0 + anglesLUTColorBar.TitleColor = [1.0, 1.0, 1.0] + anglesLUTColorBar.TitleOpacity = 1.0 + anglesLUTColorBar.TitleFontFamily = 'Arial' + anglesLUTColorBar.TitleFontFile = '' + anglesLUTColorBar.TitleBold = 0 + anglesLUTColorBar.TitleItalic = 0 + anglesLUTColorBar.TitleShadow = 0 + anglesLUTColorBar.TitleFontSize = 16 + anglesLUTColorBar.LabelColor = [1.0, 1.0, 1.0] + anglesLUTColorBar.LabelOpacity = 1.0 + anglesLUTColorBar.LabelFontFamily = 'Arial' + anglesLUTColorBar.LabelFontFile = '' + anglesLUTColorBar.LabelBold = 0 + anglesLUTColorBar.LabelItalic = 0 + anglesLUTColorBar.LabelShadow = 0 + anglesLUTColorBar.LabelFontSize = 16 + anglesLUTColorBar.AutomaticLabelFormat = 1 + anglesLUTColorBar.LabelFormat = '%-#6.3g' + anglesLUTColorBar.DrawTickMarks = 1 + anglesLUTColorBar.DrawTickLabels = 1 + anglesLUTColorBar.UseCustomLabels = 0 + anglesLUTColorBar.CustomLabels = [] + anglesLUTColorBar.AddRangeLabels = 1 + anglesLUTColorBar.RangeLabelFormat = '%-#6.1e' + anglesLUTColorBar.DrawAnnotations = 1 + anglesLUTColorBar.AddRangeAnnotations = 0 + anglesLUTColorBar.AutomaticAnnotations = 0 + anglesLUTColorBar.DrawNanAnnotation = 0 + anglesLUTColorBar.NanAnnotation = 'NaN' + anglesLUTColorBar.TextPosition = 'Ticks right/top, annotations left/bottom' + anglesLUTColorBar.ReverseLegend = 0 + anglesLUTColorBar.ScalarBarThickness = 16 + anglesLUTColorBar.ScalarBarLength = 0.33 + + # Properties modified on anglesLUTColorBar + anglesLUTColorBar.DrawTickLabels = 0 + anglesLUTColorBar.AddRangeLabels = 0 + + # Properties modified on anglesLUTColorBar + anglesLUTColorBar.Title = 'angle $\\alpha$' + # anglesLUTColorBar.Title = 'angle $\\angle$' + anglesLUTColorBar.HorizontalTitle = 1 + anglesLUTColorBar.TitleFontSize = 20 + # Properties modified on anglesLUTColorBar + anglesLUTColorBar.LabelFontSize = 20 + + anglesLUTColorBar.TitleFontSize = 24 + # Properties modified on anglesLUTColorBar + anglesLUTColorBar.LabelFontSize = 20 + + # Properties modified on anglesLUTColorBar + anglesLUTColorBar.DrawTickMarks = 0 + + + # find source + xMLStructuredGridReader1 = FindSource('XMLStructuredGridReader1') + + # set active source + SetActiveSource(xMLStructuredGridReader1) + + # get color transfer function/color map for 'elasticRatio' + elasticRatioLUT = GetColorTransferFunction('elasticRatio') + elasticRatioLUT.RGBPoints = [0.3303091106505249, 0.34902, 0.0, 0.129412, 0.34705135837933526, 0.4, 0.00392157, 0.101961, 0.3637936061081457, 0.470588, 0.0156863, 0.0901961, 0.3805358538369561, 0.54902, 0.027451, 0.0705882, 0.3972781015657665, 0.619608, 0.0627451, 0.0431373, 0.4140203492945769, 0.690196, 0.12549, 0.0627451, 0.4307625970233873, 0.741176, 0.184314, 0.0745098, 0.4475048447521977, 0.788235, 0.266667, 0.0941176, 0.46424709248100815, 0.811765, 0.345098, 0.113725, 0.48098934020981854, 0.831373, 0.411765, 0.133333, 0.4977315879386289, 0.85098, 0.47451, 0.145098, 0.5144738356674393, 0.870588, 0.54902, 0.156863, 0.5312160833962497, 0.878431, 0.619608, 0.168627, 0.5479583311250602, 0.890196, 0.658824, 0.196078, 0.5647005788538706, 0.909804, 0.717647, 0.235294, 0.581442826582681, 0.929412, 0.776471, 0.278431, 0.5951862028983068, 0.94902, 0.823529, 0.321569, 0.6108455620440179, 0.968627, 0.87451, 0.407843, 0.6278376041089421, 0.980392, 0.917647, 0.509804, 0.6451631517486243, 0.988235, 0.956863, 0.643137, 0.6541590962982686, 0.992157, 0.964706, 0.713725, 0.6644843753175806, 0.988235, 0.980392, 0.870588, 0.6651540652267329, 1.0, 1.0, 1.0, 0.6658237551358854, 0.913725, 0.988235, 0.937255, 0.6761490341551974, 0.827451, 0.980392, 0.886275, 0.6861441560492971, 0.764706, 0.980392, 0.866667, 0.6964727835181548, 0.658824, 0.980392, 0.843137, 0.708134093906226, 0.572549, 0.964706, 0.835294, 0.7237934530519369, 0.423529, 0.941176, 0.87451, 0.7361211048996146, 0.262745, 0.901961, 0.862745, 0.7521139696200834, 0.0705882, 0.854902, 0.870588, 0.7667734817314298, 0.0509804, 0.8, 0.85098, 0.7867643952095386, 0.0235294, 0.709804, 0.831373, 0.8077544860321026, 0.0313725, 0.615686, 0.811765, 0.832576542514837, 0.0313725, 0.537255, 0.788235, 0.8493187902436474, 0.0392157, 0.466667, 0.768627, 0.8660610379724578, 0.0509804, 0.396078, 0.741176, 0.8828032857012682, 0.054902, 0.317647, 0.709804, 0.8995455334300786, 0.054902, 0.243137, 0.678431, 0.916287781158889, 0.0431373, 0.164706, 0.639216, 0.9330300288876996, 0.0313725, 0.0980392, 0.6, 0.94977227661651, 0.0392157, 0.0392157, 0.560784, 0.9665145243453201, 0.105882, 0.0509804, 0.509804, 0.9832567720741308, 0.113725, 0.0235294, 0.45098, 0.9999990198029411, 0.12549, 0.0, 0.380392] + elasticRatioLUT.ColorSpace = 'Lab' + elasticRatioLUT.NanColor = [0.250004, 0.0, 0.0] + elasticRatioLUT.ScalarRangeInitialized = 1.0 + + # get opacity transfer function/opacity map for 'elasticRatio' + elasticRatioPWF = GetOpacityTransferFunction('elasticRatio') + elasticRatioPWF.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0] + elasticRatioPWF.ScalarRangeInitialized = 1 + + # get active view + renderView1 = GetActiveViewOrCreate('RenderView') + # uncomment following to set a specific view size + # renderView1.ViewSize = [929, 934] + + # get display properties + xMLStructuredGridReader1Display = GetDisplayProperties(xMLStructuredGridReader1, view=renderView1) + + # hide color bar/color legend + xMLStructuredGridReader1Display.SetScalarBarVisibility(renderView1, False) + + @@ -567,11 +771,14 @@ renderView1.OrientationAxesVisibility = 0 # SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[2514, 1868]) # SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1063, 657]) # -if prestrain: +if case == 1: outputName = '/home/klaus/Desktop/PrestrainRatio' + ".png" -else: +elif case == 2: outputName = '/home/klaus/Desktop/ElasticRatio' + ".png" +else: + outputName = '/home/klaus/Desktop/CorrespondingAngle' + ".png" + # SaveScreenshot('/home/klaus/Desktop/2DPhaseDiagram.png', renderView1, ImageResolution=[2126, 1314]) SaveScreenshot(outputName , renderView1, ImageResolution=[2126, 1314]) diff --git a/src/PhaseDiagram_PlotScriptV2.py b/src/PhaseDiagram_PlotScriptV2.py index 89279ad6..c8aefca4 100644 --- a/src/PhaseDiagram_PlotScriptV2.py +++ b/src/PhaseDiagram_PlotScriptV2.py @@ -12,21 +12,37 @@ paraview.simple._DisableFirstRenderCameraReset() # ----- CREATE A Phase Diagram for the following cases: # 1. (Hyperbolic Case) Gamma = '0' # 2. (Elliptic Case) Gamma = 'infinity' - -case = 1 -case = 2 +# +# case = 1 +# case = 2 # drawLine = False -curvature = 1 +curvature = 0 + + +hide_redcolor = True +# hide_redcolor = False +gamma = 'infinity' +# gamma = '0' # create a new 'XML Structured Grid Reader' -phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts']) +# if case == 1: +if gamma == '0': + phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts']) + + +# if case == 2: +elif gamma == 'infinity': + phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts']) + +# create a new 'XML Structured Grid Reader' +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts']) # phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_100SP.vts']) -# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity300sp.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_300p.vts']) # phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinityBetaSmallerOne.vts']) -# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0300sp.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_300p.vts']) # phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_greaterOne.vts']) # phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_greaterOne.vts']) # phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts']) @@ -540,6 +556,25 @@ anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0] + + + + + + + + + + + + + + + + + + + # # get color legend/bar for anglesLUT in view renderView1 # anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1) @@ -639,7 +674,7 @@ anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0] # -if case == 1: +if gamma == '0': # get color transfer function/color map for 'angles' anglesLUT = GetColorTransferFunction('angles') @@ -731,13 +766,176 @@ if case == 1: anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + # if hide_redcolor: + # + # # get active source. + # transform1 = GetActiveSource() + # + # # get active view + # renderView1 = GetActiveViewOrCreate('RenderView') + # # uncomment following to set a specific view size + # # renderView1.ViewSize = [1257, 934] + # + # # get display properties + # transform1Display = GetDisplayProperties(transform1, view=renderView1) + # + # # Properties modified on transform1Display + # transform1Display.Opacity = 1.0 + # + # # get color transfer function/color map for 'angles' + # anglesLUT = GetColorTransferFunction('angles') + # anglesLUT.InterpretValuesAsCategories = 1 + # anglesLUT.AnnotationsInitialized = 1 + # anglesLUT.EnableOpacityMapping = 1 + # anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + # anglesLUT.ScalarRangeInitialized = 1.0 + # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + # anglesLUT.ActiveAnnotatedValues = ['0'] + # anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + # anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + # + # # get opacity transfer function/opacity map for 'angles' + # anglesPWF = GetOpacityTransferFunction('angles') + # anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + # anglesPWF.ScalarRangeInitialized = 1 + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedOpacities = [0.0, 1.0, 1.0, 1.0] + + + # # ----------------- LEGEND ----------------- + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.InterpretValuesAsCategories = 1 + anglesLUT.AnnotationsInitialized = 1 + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + anglesLUT.ActiveAnnotatedValues = ['0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0] + anglesLUT.IndexedOpacities = [0.1, 1.0] + + # get active source. + # transform1 = GetActiveSource() + # + # # get active view + # renderView1 = GetActiveViewOrCreate('RenderView') + # # uncomment following to set a specific view size + # # renderView1.ViewSize = [1257, 934] + # + # # get display properties + # transform1Display = GetDisplayProperties(transform1, view=renderView1) + # + # # Properties modified on transform1Display + # transform1Display.Opacity = 1.0 + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedOpacities = [0.0, 1.0] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [0.8196078431372549, 0.8313725490196079, 0.8274509803921568, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [0.0, 0.0, 0.0, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + + if hide_redcolor: + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + anglesLUT.InterpretValuesAsCategories = 1 + anglesLUT.AnnotationsInitialized = 1 + anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 + anglesLUT.RescaleOnVisibilityChange = 0 + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.UseLogScale = 0 + anglesLUT.ColorSpace = 'Diverging' + anglesLUT.UseBelowRangeColor = 0 + anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] + anglesLUT.UseAboveRangeColor = 0 + anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] + anglesLUT.NanColor = [1.0, 1.0, 0.0] + anglesLUT.NanOpacity = 1.0 + anglesLUT.Discretize = 1 + anglesLUT.NumberOfTableValues = 256 + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.HSVWrap = 0 + anglesLUT.VectorComponent = 0 + anglesLUT.VectorMode = 'Magnitude' + anglesLUT.AllowDuplicateScalars = 1 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + anglesLUT.ActiveAnnotatedValues = ['0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.AllowDuplicateScalars = 1 + anglesPWF.UseLogScale = 0 + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451] + anglesLUT.IndexedOpacities = [0.1, 1.0] + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + + # Properties modified on anglesLUT + anglesLUT.IndexedOpacities = [0.0, 1.0] + + # get active source. + transform1 = GetActiveSource() + + # get active view + renderView1 = GetActiveViewOrCreate('RenderView') + # uncomment following to set a specific view size + # renderView1.ViewSize = [1257, 934] + + # get display properties + transform1Display = GetDisplayProperties(transform1, view=renderView1) + + # Properties modified on transform1Display + transform1Display.Opacity = 1.0 + + # #TEST: (only for 100SP..) # anglesLUT.IndexedOpacities = [1.0, 0.03] # transform1Display.Opacity = 0.1 #overall Opacity -if case == 2: #TEST +if gamma == 'infinity': #TEST # Properties modified on anglesLUT anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 1.0, 0.0, 0.0] @@ -746,17 +944,17 @@ if case == 2: #TEST anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0] anglesPWF.ScalarRangeInitialized = 1 - # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. - anglesLUT.ApplyPreset('jet', True) - - # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. - anglesLUT.ApplyPreset('jet', True) - - # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. - anglesLUT.ApplyPreset('jet', True) - - # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. - anglesLUT.ApplyPreset('jet', True) + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) # Properties modified on anglesLUT anglesLUT.RGBPoints = [0.0, 0.0, 0.0, 0.5625, 0.17453275066650778, 0.0, 0.0, 1.0, 0.5734655375881175, 0.0, 1.0, 1.0, 0.7729315383498405, 0.5, 1.0, 0.5, 0.9723975391115637, 1.0, 1.0, 0.0, 1.3713303260331735, 1.0, 0.0, 0.0, 1.5707963267948966, 0.6588235294117647, 0.0, 0.0] @@ -809,6 +1007,9 @@ if case == 2: #TEST # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. anglesLUT.ApplyPreset('Warm to Cool (Extended)', True) + #TEST + anglesLUT.ApplyPreset('jet', True) + # invert the transfer function anglesLUT.InvertTransferFunction() @@ -909,6 +1110,72 @@ if case == 2: #TEST anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0] + if hide_redcolor: + # get display properties + transform1Display = GetDisplayProperties(transform1, view=renderView1) + + # Properties modified on transform1Display + transform1Display.Opacity = 1.0 + + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.ColorSpace = 'Lab' + anglesLUT.NanColor = [0.250004, 0.0, 0.0] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.4117647111415863, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.EnableOpacityMapping = 1 + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.41911765933036804, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.375, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.3602941334247589, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.14705882966518402, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.125, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0, 0.5, 0.0] + + #### saving camera placements for all active views + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.ColorSpace = 'Lab' + anglesLUT.NanColor = [0.250004, 0.0, 0.0] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + anglesPWF.ApplyPreset('Preset 5', True) + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + if curvature == 1: # set scalar coloring @@ -1160,6 +1427,18 @@ if curvature == 1: + + + + + + + + + + + + # update the view to ensure updated data information renderView1.Update() @@ -1170,9 +1449,12 @@ renderView1.Update() # SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[2514, 1868]) # SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1063, 657]) -if case ==1: - SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot_Gamma0_HiRES.png', renderView1, ImageResolution=[2126, 1314]) -elif case == 2: - SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot_GammaInf_HiRES.png', renderView1, ImageResolution=[2126, 1314]) +if gamma == '0' : + # SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_Gamma0.png', renderView1, ImageResolution=[2126, 1314]) + SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_Gamma0.png', renderView1, ImageResolution=[2126, 1314],OverrideColorPalette='WhiteBackground') + +elif gamma == 'infinity': + # SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_GammaInf.png', renderView1, ImageResolution=[2126, 1314]) + SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_GammaInf.png', renderView1, ImageResolution=[2126, 1314],OverrideColorPalette='WhiteBackground') # export view # ExportView('/home/klaus/Desktop/PhaseDiagramPlot.pdf', view=renderView1) diff --git a/src/PhaseDiagram_PlotScriptV3.py b/src/PhaseDiagram_PlotScriptV3.py new file mode 100644 index 00000000..6931af4c --- /dev/null +++ b/src/PhaseDiagram_PlotScriptV3.py @@ -0,0 +1,1460 @@ +# To ensure correct image size when batch processing, please search +# for and uncomment the line `# renderView*.ViewSize = [*,*]` + +#### import the simple module from the paraview +from paraview.simple import * +#### disable automatic camera reset on 'Show' +paraview.simple._DisableFirstRenderCameraReset() + +#--- Run in Terminal with: 'pvbatch PhaseDiagram_PlotScript.py' + + +# ----- CREATE A Phase Diagram for the following cases: +# 1. (Hyperbolic Case) Gamma = '0' +# 2. (Elliptic Case) Gamma = 'infinity' +# +# case = 1 +# case = 2 +# +drawLine = False + +curvature = 0 + + +hide_redcolor = True +# hide_redcolor = False + +gamma = 'infinity' +gamma = '0' + +# create a new 'XML Structured Grid Reader' +# if case == 1: +if gamma == '0': + phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts']) + + +# if case == 2: +elif gamma == 'infinity': + phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts']) + +# create a new 'XML Structured Grid Reader' +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_100SP.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_300p.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinityBetaSmallerOne.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_300p.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_greaterOne.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_greaterOne.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity_300SpMu1.vts']) +#phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGamma0_300spmu1.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/beforePrestrainChange/PhaseDiagram3DGammainfinity_100spmu1.vts']) +# phaseDiagram3DGammainfinityvts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/PhaseDiagram3DGammainfinity150P.vts']) + + +phaseDiagram3DGammainfinityvts.PointArrayStatus = ['Type', 'angles', 'curvature'] + +# get active view +renderView1 = GetActiveViewOrCreate('RenderView') +# uncomment following to set a specific view size +# renderView1.ViewSize = [999, 547] + +## ---- Set a specific view size: +renderView1.ViewSize = [1257, 934] + +# show data in view +phaseDiagram3DGammainfinityvtsDisplay = Show(phaseDiagram3DGammainfinityvts, renderView1) + +# trace defaults for the display properties. +phaseDiagram3DGammainfinityvtsDisplay.Representation = 'Outline' +phaseDiagram3DGammainfinityvtsDisplay.ColorArrayName = ['POINTS', ''] +phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleArray = 'Type' +phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleFunction = 'PiecewiseFunction' +phaseDiagram3DGammainfinityvtsDisplay.SelectOrientationVectors = 'None' +phaseDiagram3DGammainfinityvtsDisplay.ScaleFactor = 4.0 +phaseDiagram3DGammainfinityvtsDisplay.SelectScaleArray = 'Type' +phaseDiagram3DGammainfinityvtsDisplay.GlyphType = 'Arrow' +phaseDiagram3DGammainfinityvtsDisplay.GlyphTableIndexArray = 'Type' +phaseDiagram3DGammainfinityvtsDisplay.GaussianRadius = 0.2 +phaseDiagram3DGammainfinityvtsDisplay.SetScaleArray = ['POINTS', 'Type'] +phaseDiagram3DGammainfinityvtsDisplay.ScaleTransferFunction = 'PiecewiseFunction' +phaseDiagram3DGammainfinityvtsDisplay.OpacityArray = ['POINTS', 'Type'] +phaseDiagram3DGammainfinityvtsDisplay.OpacityTransferFunction = 'PiecewiseFunction' +phaseDiagram3DGammainfinityvtsDisplay.DataAxesGrid = 'GridAxesRepresentation' +phaseDiagram3DGammainfinityvtsDisplay.PolarAxes = 'PolarAxesRepresentation' +phaseDiagram3DGammainfinityvtsDisplay.ScalarOpacityUnitDistance = 1.1546332790816523 + +# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction' +phaseDiagram3DGammainfinityvtsDisplay.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0] + +# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' +phaseDiagram3DGammainfinityvtsDisplay.ScaleTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0] + +# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' +phaseDiagram3DGammainfinityvtsDisplay.OpacityTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0] + +# reset view to fit data +renderView1.ResetCamera() + +# update the view to ensure updated data information +renderView1.Update() + +# create a new 'Transform' +transform1 = Transform(Input=phaseDiagram3DGammainfinityvts) +transform1.Transform = 'Transform' + +# Properties modified on transform1.Transform +transform1.Transform.Scale = [0.025, 0.025, 1.0] + +# Properties modified on transform1.Transform +# transform1.Transform.Scale = [0.025, 1.0, 1.0] + +# show data in view +transform1Display = Show(transform1, renderView1) + +# trace defaults for the display properties. +transform1Display.Representation = 'Outline' +transform1Display.ColorArrayName = ['POINTS', ''] +transform1Display.OSPRayScaleArray = 'Type' +transform1Display.OSPRayScaleFunction = 'PiecewiseFunction' +transform1Display.SelectOrientationVectors = 'None' +transform1Display.ScaleFactor = 0.1 +transform1Display.SelectScaleArray = 'Type' +transform1Display.GlyphType = 'Arrow' +transform1Display.GlyphTableIndexArray = 'Type' +transform1Display.GaussianRadius = 0.005 +transform1Display.SetScaleArray = ['POINTS', 'Type'] +transform1Display.ScaleTransferFunction = 'PiecewiseFunction' +transform1Display.OpacityArray = ['POINTS', 'Type'] +transform1Display.OpacityTransferFunction = 'PiecewiseFunction' +transform1Display.DataAxesGrid = 'GridAxesRepresentation' +transform1Display.PolarAxes = 'PolarAxesRepresentation' +transform1Display.ScalarOpacityUnitDistance = 0.035113904022862234 + +# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction' +transform1Display.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0] +# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' +transform1Display.ScaleTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0] +# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' +transform1Display.OpacityTransferFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.4276729533762702, 0.625, 0.5, 0.0, 1.7232704162597656, 0.6691176295280457, 0.5, 0.0, 2.3332666599993335, 0.8676470518112183, 0.5, 0.0, 2.471698045730591, 0.6911764740943909, 0.5, 0.0, 3.0, 0.8014705777168274, 0.5, 0.0] + +# hide data in view +Hide(phaseDiagram3DGammainfinityvts, renderView1) + +# update the view to ensure updated data information +renderView1.Update() +# +# reset view to fit data +renderView1.ResetCamera() + +# ------------------------------------------------------------- + +# toggle 3D widget visibility (only when running from the GUI) +Hide3DWidgets(proxy=transform1.Transform) + +# set scalar coloring +ColorBy(transform1Display, ('POINTS', 'angles')) + +# rescale color and/or opacity maps used to include current data range +transform1Display.RescaleTransferFunctionToDataRange(True, False) + +# show color bar/color legend +transform1Display.SetScalarBarVisibility(renderView1, True) + +# get color transfer function/color map for 'angles' +anglesLUT = GetColorTransferFunction('angles') + +# get opacity transfer function/opacity map for 'angles' +anglesPWF = GetOpacityTransferFunction('angles') + +# --- change representation type +transform1Display.SetRepresentationType('Point Gaussian') + +# Properties modified on transform1Display +transform1Display.ShaderPreset = 'Plain circle' + +# --- Properties modified on transform1Display +transform1Display.GaussianRadius = 0.0075 +# Properties modified on transform1Display + +##--- SET OPACITY +# transform1Display.Opacity = 0.07 +transform1Display.Opacity = 0.03 #overall Opacity +# transform1Display.Opacity = 0.15 #overall Opacity + +# -------------- CHANGE COLORMAP ------------------ +# Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + +#anglesLUT.ApplyPreset('Cool to Warm', True) +anglesLUT.ApplyPreset('Jet', True) + + + + + +## (Optional?) Adjust ColorMap: +# get opacity transfer function/opacity map for 'angles' +anglesPWF = GetOpacityTransferFunction('angles') # +# get color transfer function +colorMap = GetColorTransferFunction('angles') + +# get color transfer function/color map for 'angles' +anglesLUT = GetColorTransferFunction('angles') +anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" +anglesLUT.InterpretValuesAsCategories = 0 +anglesLUT.AnnotationsInitialized = 0 +anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 +anglesLUT.RescaleOnVisibilityChange = 0 +anglesLUT.EnableOpacityMapping = 1 +anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] +anglesLUT.UseLogScale = 0 +anglesLUT.ColorSpace = 'Diverging' +anglesLUT.UseBelowRangeColor = 0 +anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] +anglesLUT.UseAboveRangeColor = 0 +anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] +anglesLUT.NanColor = [1.0, 1.0, 0.0] +anglesLUT.NanOpacity = 1.0 +anglesLUT.Discretize = 1 +anglesLUT.NumberOfTableValues = 256 +anglesLUT.ScalarRangeInitialized = 1.0 +anglesLUT.HSVWrap = 0 +anglesLUT.VectorComponent = 0 +anglesLUT.VectorMode = 'Magnitude' +anglesLUT.AllowDuplicateScalars = 1 +anglesLUT.Annotations = [] +anglesLUT.ActiveAnnotatedValues = [] +anglesLUT.IndexedColors = [] +anglesLUT.IndexedOpacities = [] + +# get opacity transfer function/opacity map for 'angles' +anglesPWF = GetOpacityTransferFunction('angles') +# anglesPWF.Points = [0.0, 0.05882352963089943, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +anglesPWF.AllowDuplicateScalars = 1 +anglesPWF.UseLogScale = 0 +anglesPWF.ScalarRangeInitialized = 1 + +# Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.3014705777168274, 0.5, 0.0, 0.33589355211648514, 0.625, 0.5, 0.0, 0.5680552565701278, 0.6691176295280457, 0.5, 0.0, 1.0471451860825267, 0.8676470518112183, 0.5, 0.0, 1.15586894219242, 0.6911764740943909, 0.5, 0.0, 1.5707963267948966, 0.8014705777168274, 0.5, 0.0] + + +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.037, 0.5, 1.0, 0.33589355211648514, 0.625, 0.5, 0.0, 0.5680552565701278, 0.6691176295280457, 0.5, 0.0, 1.0471451860825267, 0.8676470518112183, 0.5, 0.0, 1.15586894219242, 0.6911764740943909, 0.5, 0.0, 1.5707963267948966, 0.8014705777168274, 0.5, 0.0] +# Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +anglesPWF.Points = [0.1, 0.136764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# rescale color and/or opacity maps used to exactly fit the current data range +transform1Display.RescaleTransferFunctionToDataRange(False, True) +# # Properties modified on anglesPWF +# # anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0570768117917348, 1.0, 0.5, 0.0, 1.1558689421924027, 0.9852941036224365, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7705793380737305, 0.9779411554336548, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7656397223472595, 0.9926470518112183, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.9779411554336548, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.9411764740943909, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.904411792755127, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.7573529481887817, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.7426470518112183, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.6838235259056091, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.6764705777168274, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.5955882668495178, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.5735294222831726, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.43382352590560913, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.4264705777168274, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.3897058963775635, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.36764705181121826, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.29411765933036804, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.2867647111415863, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.2647058963775635, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.25, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.2132352888584137, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.1985294073820114, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.16911764442920685, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.1617647111415863, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.13235294818878174, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.11029411852359772, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.10294117778539658, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.09558823704719543, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.06617647409439087, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.05882352963089943, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.05147058889269829, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.029411764815449715, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.06617647409439087, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.07352941483259201, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.05147058889269829, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.04411764815449715, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# +# # Properties modified on anglesPWF +# anglesPWF.Points = [0.0, 0.036764707416296005, 0.5, 0.0, 0.7607001066207886, 1.0, 0.5, 0.0, 0.8693715333938599, 1.0, 0.5, 0.0, 1.0175598859786987, 1.0, 0.5, 0.0, 1.12623131275177, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + + +# Properties modified on anglesLUT +anglesLUT.EnableOpacityMapping = 0 +anglesLUT.EnableOpacityMapping = 1 + + + +## ---- AXES GRID PROPERTIES ----- +# Properties modified on renderView1.AxesGrid +renderView1.AxesGrid.Visibility = 1 + +# Properties modified on renderView1.AxesGrid +renderView1.AxesGrid.XTitle = ' $\\theta_\\rho$ ' +renderView1.AxesGrid.YTitle = ' $\\theta_\\mu$ ' +renderView1.AxesGrid.ZTitle = ' $\\theta$ ' + +# renderView1.AxesGrid.XTitleFontSize = 45 #24 +# renderView1.AxesGrid.YTitleFontSize = 45 +# renderView1.AxesGrid.ZTitleFontSize = 45 +# renderView1.AxesGrid.XLabelFontSize = 30 #default:12 +# renderView1.AxesGrid.YLabelFontSize = 30 +# renderView1.AxesGrid.ZLabelFontSize = 30 + +renderView1.AxesGrid.XTitleFontSize = 65 #24 +renderView1.AxesGrid.YTitleFontSize = 65 +renderView1.AxesGrid.ZTitleFontSize = 65 +renderView1.AxesGrid.XLabelFontSize = 45 #default:12 +renderView1.AxesGrid.YLabelFontSize = 45 +renderView1.AxesGrid.ZLabelFontSize = 45 + +# ---- Switch of/on OrientationAXES: +# renderView1.OrientationAxesVisibility = 1 +renderView1.OrientationAxesVisibility = 0 +# rv = GetRenderView() +# renderView1.OrientationAxesLabelColor = [0.5, 0.5, 0.5] +# Render() + +# ---- Switch Grid On/Off: +renderView1.AxesGrid.ShowGrid = 1 + +# # reset view to fit data +# renderView1.ResetCamera() + + +## Properties modified on renderView1.AxesGrid +## -- COLOR/Font-Size OF AXES-TITLE: +## -- Green: +# renderView1.AxesGrid.XTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +# renderView1.AxesGrid.YTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +# renderView1.AxesGrid.ZTitleColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +## -- White: +# renderView1.AxesGrid.XTitleColor = [1.0, 1.0, 1.0] +# renderView1.AxesGrid.YTitleColor = [1.0, 1.0, 1.0] +# renderView1.AxesGrid.ZTitleColor = [1.0, 1.0, 1.0] + + + +# Properties modified on renderView1.AxesGrid +# --- Change FontSize of Values on Axis: + + +# # --- Change Color of Values on Axis: +## -- Green: +# # renderView1.AxesGrid.XLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +# # renderView1.AxesGrid.YLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +# # renderView1.AxesGrid.ZLabelColor = [0.5411764705882353, 0.8862745098039215, 0.20392156862745098] +## -- White: +renderView1.AxesGrid.XLabelColor = [1.0, 1.0, 1.0] +renderView1.AxesGrid.YLabelColor = [1.0, 1.0, 1.0] +renderView1.AxesGrid.ZLabelColor = [1.0, 1.0, 1.0] + +## --- Render Axes only on certain Facets: +renderView1.AxesGrid.FacesToRender = 7 +renderView1.AxesGrid.ShowEdges = 0 +renderView1.AxesGrid.AxesToLabel = 24 + + +## ----------- Scale Data on Axes: +renderView1.AxesGrid.DataScale = [0.025, 0.025, 1.0] +# +# # Properties modified on renderView1.AxesGrid +## ---------- Set Custom Axis-Labels: +renderView1.AxesGrid.XAxisUseCustomLabels = 1 +renderView1.AxesGrid.ZAxisUseCustomLabels = 1 +renderView1.AxesGrid.YAxisUseCustomLabels = 1 +renderView1.AxesGrid.XAxisLabels = [-20, -15.0, -10.0, -5.0, 0.0, 5.0, 10.0, 15.0, 20.0] +# renderView1.AxesGrid.YAxisLabels = [0 , 10.0, 20.0, 30.0, 40.0] +# renderView1.AxesGrid.YAxisLabels = [1 ,5, 10.0,15, 20.0,25, 30.0,35, 40.0] +renderView1.AxesGrid.YAxisLabels = [1 , 10, 20, 30, 40] +# renderView1.AxesGrid.YAxisLabels = [0 ,5.0, 10.0, 15.0, 20.0, 25.0, 30.0,35.0, 40.0] +renderView1.AxesGrid.ZAxisLabels = [ 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] + + +## ---- SET Center-Axis visible: +renderView1.CenterAxesVisibility = 0 + +# ----------------- CAMERA POSITION ----------------- +# current camera placement for renderView1 +# renderView1.CameraPosition = [0.9924119707463583, 3.796427396663517, 1.5103327925582364] +# renderView1.CameraFocalPoint = [0.0, 0.5002500000000001, 0.5] +# renderView1.CameraViewUp = [-0.03762445763524004, -0.2824789551065148, 0.9585353619505051] +# renderView1.CameraParallelScale = 0.93323050610355 + +renderView1.CameraPosition = [1.320702817430001, 3.4031687433379654, 1.5124027164700495] +renderView1.CameraFocalPoint = [5.999081648913413e-18, 0.5002500000000002, 0.4999999999999999] +renderView1.CameraViewUp = [-0.09506057625109621, -0.2889757851908078, 0.9526051030811066] +renderView1.CameraParallelScale = 0.8660254037844386 +renderView1.EyeAngle = 0.0 + +renderView1.Update() + +## uncomment the following to render all views # TODO ? +# RenderAllViews() + +# # get active view +# # renderView1 = GetActiveViewOrCreate('RenderView') + + + + + + + +# ----------------- DRAW LINE ----------------- +if drawLine: + # create a new 'Line' + line1 = Line() + + # show data in view + line1Display = Show(line1, renderView1) + # set active source + SetActiveSource(line1) + + # Properties modified on line1 + line1.Point1 = [0.25, 0.25, 0.0] + line1.Point2 = [0.25, 0.25, 1.0] + + # Properties modified on line1Display + # line1Display.LineWidth = 2.0 + line1Display.LineWidth = 4.0 + + # change solid color + line1Display.AmbientColor = [1.0, 1.0, 0.4980392156862745] + line1Display.DiffuseColor = [1.0, 1.0, 0.4980392156862745] + + # toggle 3D widget visibility (only when running from the GUI) + Show3DWidgets(proxy=line1) + + # update the view to ensure updated data information + renderView1.Update() + + # # reset view to fit data + # renderView1.ResetCamera() + + +# ----------------- DRAW Plane ----------------- +# # create a new 'Plane' +# plane2 = Plane() +# plane2.Origin = [0.0, 0.0, 0.0] +# plane2.Point1 = [0.0, 0.0, 1.0] +# plane2.Point2 = [0.0, 1.0, 0.0] +# plane2.XResolution = 1 +# plane2.YResolution = 1 +# +# # show data in view +# plane2Display = Show(plane2, renderView1) +# ----------------- LEGEND ----------------- +# get color legend/bar for anglesLUT in view renderView1 +anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1) + +# Properties modified on anglesLUTColorBar +anglesLUTColorBar.WindowLocation = 'LowerRightCorner' +anglesLUTColorBar.HorizontalTitle = 1 +anglesLUTColorBar.Title = 'angle $\\alpha$' #'angle $\\angle$' +anglesLUTColorBar.TextPosition = 'Ticks left/bottom, annotations right/top' +anglesLUTColorBar.TitleJustification = 'Left' +# anglesLUTColorBar.TitleJustification = 'Centered' + +# show color bar/color legend +# transform1Display.SetScalarBarVisibility(renderView1, True) + +# # # Properties modified on anglesLUTColorBar +anglesLUTColorBar.AutomaticAnnotations = 0 +anglesLUTColorBar.AddRangeLabels = 0 +anglesLUTColorBar.DrawTickMarks = 0 +anglesLUTColorBar.DrawTickLabels = 0 +anglesLUTColorBar.TitleFontSize = 24 +anglesLUTColorBar.LabelFontSize = 20 +# anglesLUTColorBar.AddRangeAnnotations = 1 + +## -- Add Annotations : +anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] +anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] +anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0] + + + + + + + + + + + + + + + + + + + + + +# # get color legend/bar for anglesLUT in view renderView1 +# anglesLUTColorBar = GetScalarBar(anglesLUT, renderView1) + +# +# if case == 1: +# ## In Hyperbolic Case only two angles occur... +# # Use discrete Color map: +# # # Properties modified on anglesLUT +# # anglesLUT.InterpretValuesAsCategories = 1 +# # anglesLUT.AnnotationsInitialized = 1 +# # +# # +# # +# # # Properties modified on anglesLUT +# # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] +# # # Properties modified on anglesLUT +# # anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.03137254901960784, 0.03137254901960784, 1.0] +# # # Properties modified on anglesLUT +# # anglesLUT.IndexedOpacities = [1.0, 0.015] +# # # get active view +# # renderView1 = GetActiveViewOrCreate('RenderView') +# # # uncomment following to set a specific view size +# # # renderView1.ViewSize = [997, 905] +# # +# # # get display properties +# transform1Display = GetDisplayProperties(transform1, view=renderView1) +# print('Hyperbolic Case (case1)') +# +# # get color transfer function/color map for 'angles' +# anglesLUT = GetColorTransferFunction('angles') +# anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" +# anglesLUT.InterpretValuesAsCategories = 1 +# anglesLUT.AnnotationsInitialized = 1 +# anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 +# anglesLUT.RescaleOnVisibilityChange = 0 +# anglesLUT.EnableOpacityMapping = 1 +# anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] +# anglesLUT.UseLogScale = 0 +# anglesLUT.ColorSpace = 'Diverging' +# anglesLUT.UseBelowRangeColor = 0 +# anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] +# anglesLUT.UseAboveRangeColor = 0 +# anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] +# anglesLUT.NanColor = [1.0, 1.0, 0.0] +# anglesLUT.NanOpacity = 1.0 +# anglesLUT.Discretize = 1 +# anglesLUT.NumberOfTableValues = 256 +# anglesLUT.ScalarRangeInitialized = 1.0 +# anglesLUT.HSVWrap = 0 +# anglesLUT.VectorComponent = 0 +# anglesLUT.VectorMode = 'Magnitude' +# anglesLUT.AllowDuplicateScalars = 1 +# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] +# anglesLUT.ActiveAnnotatedValues = [] +# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.03137254901960784, 0.03137254901960784, 1.0] +# anglesLUT.IndexedOpacities = [1.0, 0.015] +# +# # Properties modified on anglesLUT +# anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] +# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 1.0, 0.10196078431372549, 0.023529411764705882] +# anglesLUT.IndexedOpacities = [1.0, -1.0] +# +# # get opacity transfer function/opacity map for 'angles' +# anglesPWF = GetOpacityTransferFunction('angles') +# anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] +# anglesPWF.AllowDuplicateScalars = 1 +# anglesPWF.UseLogScale = 0 +# anglesPWF.ScalarRangeInitialized = 1 +# +# # Properties modified on anglesLUT +# anglesLUT.IndexedColors = [1.0, 0.10196078431372549, 0.023529411764705882, 0.07450980392156863, 0.043137254901960784, 1.0] +# +# # Properties modified on anglesLUT +# anglesLUT.IndexedOpacities = [1.0, 0.01] +# +# # get active source. +# transform1 = GetActiveSource() +# +# # get active view +# renderView1 = GetActiveViewOrCreate('RenderView') +# # uncomment following to set a specific view size +# # renderView1.ViewSize = [1257, 934] +# +# # get display properties +# transform1Display = GetDisplayProperties(transform1, view=renderView1) +# +# # Properties modified on transform1Display +# transform1Display.Opacity = 0.2 +# +# transform1Display.GaussianRadius = 0.02 +# +# # Properties modified on anglesLUT +# anglesLUT.IndexedOpacities = [1.0, 0.017] +# elseif case == 2: +# + + +# +if gamma == '0': + + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + anglesLUT.InterpretValuesAsCategories = 0 + anglesLUT.AnnotationsInitialized = 0 + anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 + anglesLUT.RescaleOnVisibilityChange = 0 + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.UseLogScale = 0 + anglesLUT.ColorSpace = 'Diverging' + anglesLUT.UseBelowRangeColor = 0 + anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] + anglesLUT.UseAboveRangeColor = 0 + anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] + anglesLUT.NanColor = [1.0, 1.0, 0.0] + anglesLUT.NanOpacity = 1.0 + anglesLUT.Discretize = 1 + anglesLUT.NumberOfTableValues = 256 + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.HSVWrap = 0 + anglesLUT.VectorComponent = 0 + anglesLUT.VectorMode = 'Magnitude' + anglesLUT.AllowDuplicateScalars = 1 + anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.ActiveAnnotatedValues = [] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.AllowDuplicateScalars = 1 + anglesPWF.UseLogScale = 0 + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.InterpretValuesAsCategories = 1 + anglesLUT.AnnotationsInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0', '1.5707963267948966', '1.5708'] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.57', '$\\pi / 2$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [1.0, 0.0, 0.0, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + + # Properties modified on anglesLUT + anglesLUT.IndexedOpacities = [1.0, 0.02] + + # Properties modified on anglesLUT + anglesLUT.IndexedOpacities = [1.0, 0.05] + + # Properties modified on anglesLUT + anglesLUT.IndexedOpacities = [1.0, 0.1] + + + + # NEW: + anglesLUT.IndexedOpacities = [0.1, 1.0] + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [0.8313725490196079, 0.0196078431372549, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + + + # if hide_redcolor: + # + # # get active source. + # transform1 = GetActiveSource() + # + # # get active view + # renderView1 = GetActiveViewOrCreate('RenderView') + # # uncomment following to set a specific view size + # # renderView1.ViewSize = [1257, 934] + # + # # get display properties + # transform1Display = GetDisplayProperties(transform1, view=renderView1) + # + # # Properties modified on transform1Display + # transform1Display.Opacity = 1.0 + # + # # get color transfer function/color map for 'angles' + # anglesLUT = GetColorTransferFunction('angles') + # anglesLUT.InterpretValuesAsCategories = 1 + # anglesLUT.AnnotationsInitialized = 1 + # anglesLUT.EnableOpacityMapping = 1 + # anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + # anglesLUT.ScalarRangeInitialized = 1.0 + # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + # anglesLUT.ActiveAnnotatedValues = ['0'] + # anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + # anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + # + # # get opacity transfer function/opacity map for 'angles' + # anglesPWF = GetOpacityTransferFunction('angles') + # anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + # anglesPWF.ScalarRangeInitialized = 1 + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedOpacities = [0.0, 1.0, 1.0, 1.0] + + + # # ----------------- LEGEND ----------------- + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.InterpretValuesAsCategories = 1 + anglesLUT.AnnotationsInitialized = 1 + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + anglesLUT.ActiveAnnotatedValues = ['0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.23137254901960785, 0.2980392156862745, 0.7529411764705882] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + # anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0] + anglesLUT.IndexedOpacities = [0.1, 1.0] + + # get active source. + # transform1 = GetActiveSource() + # + # # get active view + # renderView1 = GetActiveViewOrCreate('RenderView') + # # uncomment following to set a specific view size + # # renderView1.ViewSize = [1257, 934] + # + # # get display properties + # transform1Display = GetDisplayProperties(transform1, view=renderView1) + # + # # Properties modified on transform1Display + # transform1Display.Opacity = 1.0 + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedOpacities = [0.0, 1.0] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [0.8196078431372549, 0.8313725490196079, 0.8274509803921568, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [0.0, 0.0, 0.0, 0.12549019607843137, 0.0, 0.3803921568627451] + # + # # Properties modified on anglesLUT + # anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + + if hide_redcolor: + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + anglesLUT.InterpretValuesAsCategories = 1 + anglesLUT.AnnotationsInitialized = 1 + anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 + anglesLUT.RescaleOnVisibilityChange = 0 + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.UseLogScale = 0 + anglesLUT.ColorSpace = 'Diverging' + anglesLUT.UseBelowRangeColor = 0 + anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] + anglesLUT.UseAboveRangeColor = 0 + anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] + anglesLUT.NanColor = [1.0, 1.0, 0.0] + anglesLUT.NanOpacity = 1.0 + anglesLUT.Discretize = 1 + anglesLUT.NumberOfTableValues = 256 + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.HSVWrap = 0 + anglesLUT.VectorComponent = 0 + anglesLUT.VectorMode = 'Magnitude' + anglesLUT.AllowDuplicateScalars = 1 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0', '0', '0', '1.5707963267948966', '1.5708'] + anglesLUT.ActiveAnnotatedValues = ['0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.7058823529411765, 0.01568627450980392, 0.14901960784313725, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0, 1.0] + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.IndexedOpacities = [0.1, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 0.136764707416296, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 1.0, 0.5, 0.0] + anglesPWF.AllowDuplicateScalars = 1 + anglesPWF.UseLogScale = 0 + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0', '0'] + anglesLUT.IndexedColors = [0.8313725490196079, 0.0, 0.0392156862745098, 0.12549019607843137, 0.0, 0.3803921568627451] + anglesLUT.IndexedOpacities = [0.1, 1.0] + + # Properties modified on anglesLUT + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 0.12549019607843137, 0.0, 0.3803921568627451] + + # Properties modified on anglesLUT + anglesLUT.IndexedOpacities = [0.0, 1.0] + + # get active source. + transform1 = GetActiveSource() + + # get active view + renderView1 = GetActiveViewOrCreate('RenderView') + # uncomment following to set a specific view size + # renderView1.ViewSize = [1257, 934] + + # get display properties + transform1Display = GetDisplayProperties(transform1, view=renderView1) + + # Properties modified on transform1Display + transform1Display.Opacity = 1.0 + + + + # #TEST: (only for 100SP..) + # anglesLUT.IndexedOpacities = [1.0, 0.03] + # transform1Display.Opacity = 0.1 #overall Opacity + + +if gamma == 'infinity': #TEST + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.9632241725921631, 0.865, 0.865, 0.865, 1.5707963267948966, 1.0, 0.0, 0.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + # + # # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.0, 0.0, 0.5625, 0.17453275066650778, 0.0, 0.0, 1.0, 0.5734655375881175, 0.0, 1.0, 1.0, 0.7729315383498405, 0.5, 1.0, 0.5, 0.9723975391115637, 1.0, 1.0, 0.0, 1.3713303260331735, 1.0, 0.0, 0.0, 1.5707963267948966, 0.6588235294117647, 0.0, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.15441176295280457, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.07352941483259201, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.08088235557079315, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11029411852359772, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.13235294818878174, 0.5, 0.0] + + + + ###-- ALTERNATIVE WARM TO COOL : + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + anglesLUT.ApplyPreset('Warm to Cool (Extended)', True) + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.13235294818878174, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + anglesLUT.ApplyPreset('Warm to Cool (Extended)', True) + + #TEST + anglesLUT.ApplyPreset('jet', True) + + # invert the transfer function + anglesLUT.InvertTransferFunction() + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4922565104551517, 0.470588, 0.0156863, 0.0901961, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.34902, 0.0, 0.129412] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.34902, 0.0, 0.129412] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.531279444694519, 0.396078431372549, 0.00392156862745098, 0.10196078431372549, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.34902, 0.0, 0.129412] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.5016417503356934, 0.396078431372549, 0.00392156862745098, 0.10196078431372549, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.34902, 0.0, 0.129412] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.5016417503356934, 0.396078431372549, 0.00392156862745098, 0.10196078431372549, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.6352941176470588, 0.00392156862745098, 0.01568627450980392] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.5315264186250241, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.6352941176470588, 0.00392156862745098, 0.01568627450980392] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.5115209817886353, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.6352941176470588, 0.00392156862745098, 0.01568627450980392] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.6352941176470588, 0.00392156862745098, 0.01568627450980392] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8117647058823529, 0.0, 0.027450980392156862] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.7490196078431373, 0.0, 0.03529411764705882] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.6784313725490196, 0.0, 0.03137254901960784] + + # invert the transfer function + anglesLUT.InvertTransferFunction() + + # invert the transfer function + anglesLUT.InvertTransferFunction() + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.08088235557079315, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.11764705926179886, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.15441176295280457, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.13235294818878174, 0.5, 0.0] + + # Properties modified on anglesLUT + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8313725490196079, 0.0, 0.0392156862745098] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.125, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.08088235557079315, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.05882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.08088235557079315, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0882352963089943, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.09558823704719543, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.10294117778539658, 0.5, 0.0] + + + if hide_redcolor: + # get display properties + transform1Display = GetDisplayProperties(transform1, view=renderView1) + + # Properties modified on transform1Display + transform1Display.Opacity = 1.0 + + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.ColorSpace = 'Lab' + anglesLUT.NanColor = [0.250004, 0.0, 0.0] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.4117647111415863, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + # Properties modified on anglesLUT + anglesLUT.EnableOpacityMapping = 1 + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.41911765933036804, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.375, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.3602941334247589, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.14705882966518402, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.125, 0.5, 0.0] + + # Properties modified on anglesPWF + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0, 0.5, 0.0] + + #### saving camera placements for all active views + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.EnableOpacityMapping = 1 + anglesLUT.RGBPoints = [0.0, 0.12549, 0.0, 0.380392, 0.03926990816987245, 0.113725, 0.0235294, 0.45098, 0.0785398163397449, 0.105882, 0.0509804, 0.509804, 0.11780972450961717, 0.0392157, 0.0392157, 0.560784, 0.15707963267948963, 0.0313725, 0.0980392, 0.6, 0.19634954084936207, 0.0431373, 0.164706, 0.639216, 0.2356194490192345, 0.054902, 0.243137, 0.678431, 0.27488935718910695, 0.054902, 0.317647, 0.709804, 0.31415926535897926, 0.0509804, 0.396078, 0.741176, 0.35342917352885167, 0.0392157, 0.466667, 0.768627, 0.39269908169872414, 0.0313725, 0.537255, 0.788235, 0.450920647551377, 0.0313725, 0.615686, 0.811765, 0.5001541168221094, 0.0235294, 0.709804, 0.831373, 0.5470439579732639, 0.0509804, 0.8, 0.85098, 0.581428689566804, 0.0705882, 0.854902, 0.870588, 0.618940876646993, 0.262745, 0.901961, 0.862745, 0.6478560954306335, 0.423529, 0.941176, 0.87451, 0.6845860259400787, 0.572549, 0.964706, 0.835294, 0.7119383023785582, 0.658824, 0.980392, 0.843137, 0.7361646941267158, 0.764706, 0.980392, 0.866667, 0.7596088293041297, 0.827451, 0.980392, 0.886275, 0.7838273670706534, 0.913725, 0.988235, 0.937255, 0.7853981633974483, 1.0, 1.0, 1.0, 0.7869689597242432, 0.988235, 0.980392, 0.870588, 0.8111874974907669, 0.992157, 0.964706, 0.713725, 0.8322880045486029, 0.988235, 0.956863, 0.643137, 0.8729260763191136, 0.980392, 0.917647, 0.509804, 0.9127818915188803, 0.968627, 0.87451, 0.407843, 0.9495118220283256, 0.94902, 0.823529, 0.321569, 0.9817477042468103, 0.929412, 0.776471, 0.278431, 1.0210176124166828, 0.909804, 0.717647, 0.235294, 1.0602875205865552, 0.890196, 0.658824, 0.196078, 1.0995574287564276, 0.878431, 0.619608, 0.168627, 1.1388273369263, 0.870588, 0.54902, 0.156863, 1.1780972450961724, 0.85098, 0.47451, 0.145098, 1.2173671532660448, 0.831373, 0.411765, 0.133333, 1.2566370614359172, 0.811765, 0.345098, 0.113725, 1.2959069696057897, 0.788235, 0.266667, 0.0941176, 1.335176877775662, 0.741176, 0.184314, 0.0745098, 1.3744467859455345, 0.690196, 0.12549, 0.0627451, 1.413716694115407, 0.619608, 0.0627451, 0.0431373, 1.4571852684020996, 0.4, 0.00392157, 0.101961, 1.5707963267948966, 0.8313725490196079, 0.0, 0.0392156862745098] + anglesLUT.ColorSpace = 'Lab' + anglesLUT.NanColor = [0.250004, 0.0, 0.0] + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.Annotations = ['1.5707963267948966', '$\\pi / 2$', '0.78', '$\\pi/4$', '0', '0'] + anglesLUT.IndexedColors = [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0] + anglesLUT.IndexedOpacities = [1.0, 1.0, 1.0] + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + # anglesLUT.ApplyPreset('jet', True) + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + anglesPWF.ApplyPreset('Preset 5', True) + + # get opacity transfer function/opacity map for 'angles' + anglesPWF = GetOpacityTransferFunction('angles') + anglesPWF.Points = [0.0, 1.0, 0.5, 0.0, 0.705621357414266, 1.0, 0.5, 0.0, 0.82168139570297, 1.0, 0.5, 0.0, 0.9799451305746117, 1.0, 0.5, 0.0, 1.0960051688633157, 1.0, 0.5, 0.0, 1.5707963267948966, 0.0, 0.5, 0.0] + anglesPWF.ScalarRangeInitialized = 1 + + +if curvature == 1: + # set scalar coloring + ColorBy(transform1Display, ('POINTS', 'curvature')) + + # get color transfer function/color map for 'angles' + anglesLUT = GetColorTransferFunction('angles') + anglesLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + anglesLUT.InterpretValuesAsCategories = 0 + anglesLUT.AnnotationsInitialized = 0 + anglesLUT.ShowCategoricalColorsinDataRangeOnly = 0 + anglesLUT.RescaleOnVisibilityChange = 0 + anglesLUT.EnableOpacityMapping = 0 + anglesLUT.RGBPoints = [0.0, 0.23137254902, 0.298039215686, 0.752941176471, 0.7853981633974483, 0.865, 0.865, 0.865, 1.5707963267948966, 0.705882352941, 0.0156862745098, 0.149019607843] + anglesLUT.UseLogScale = 0 + anglesLUT.ColorSpace = 'Diverging' + anglesLUT.UseBelowRangeColor = 0 + anglesLUT.BelowRangeColor = [0.0, 0.0, 0.0] + anglesLUT.UseAboveRangeColor = 0 + anglesLUT.AboveRangeColor = [0.5, 0.5, 0.5] + anglesLUT.NanColor = [1.0, 1.0, 0.0] + anglesLUT.NanOpacity = 1.0 + anglesLUT.Discretize = 1 + anglesLUT.NumberOfTableValues = 256 + anglesLUT.ScalarRangeInitialized = 1.0 + anglesLUT.HSVWrap = 0 + anglesLUT.VectorComponent = 0 + anglesLUT.VectorMode = 'Magnitude' + anglesLUT.AllowDuplicateScalars = 1 + anglesLUT.Annotations = [] + anglesLUT.ActiveAnnotatedValues = [] + anglesLUT.IndexedColors = [] + anglesLUT.IndexedOpacities = [] + + # Hide the scalar bar for this color map if no visible data is colored by it. + HideScalarBarIfNotNeeded(anglesLUT, renderView1) + + # rescale color and/or opacity maps used to include current data range + transform1Display.RescaleTransferFunctionToDataRange(True, False) + + # show color bar/color legend + transform1Display.SetScalarBarVisibility(renderView1, True) + + # get color transfer function/color map for 'curvature' + curvatureLUT = GetColorTransferFunction('curvature') + curvatureLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'" + curvatureLUT.InterpretValuesAsCategories = 0 + curvatureLUT.AnnotationsInitialized = 0 + curvatureLUT.ShowCategoricalColorsinDataRangeOnly = 0 + curvatureLUT.RescaleOnVisibilityChange = 0 + curvatureLUT.EnableOpacityMapping = 0 + curvatureLUT.RGBPoints = [-1187.69685, 0.001462, 0.000466, 0.013866, -1178.375848332, 0.002258, 0.001295, 0.018331, -1169.057223258, 0.003279, 0.002305, 0.023708, -1159.73622159, 0.004512, 0.00349, 0.029965, -1150.4175965159998, 0.00595, 0.004843, 0.03713, -1141.0965948479998, 0.007588, 0.006356, 0.044973, -1131.7779697740002, 0.009426, 0.008022, 0.052844, -1122.4569681060002, 0.011465, 0.009828, 0.06075, -1113.1359664379997, 0.013708, 0.011771, 0.068667, -1103.8173413640002, 0.016156, 0.01384, 0.076603, -1094.4963396960002, 0.018815, 0.016026, 0.084584, -1085.1777146220002, 0.021692, 0.01832, 0.09261, -1075.8567129540002, 0.024792, 0.020715, 0.100676, -1066.53808788, 0.028123, 0.023201, 0.108787, -1057.2170862120001, 0.031696, 0.025765, 0.116965, -1047.8960845440001, 0.03552, 0.028397, 0.125209, -1038.57745947, 0.039608, 0.03109, 0.133515, -1029.2564578019999, 0.04383, 0.03383, 0.141886, -1019.9378327279999, 0.048062, 0.036607, 0.150327, -1010.6168310599999, 0.05232, 0.039407, 0.158841, -1001.2982059860002, 0.056615, 0.04216, 0.167446, -991.9772043180003, 0.060949, 0.044794, 0.176129, -982.6562026499998, 0.06533, 0.047318, 0.184892, -973.3375775760002, 0.069764, 0.049726, 0.193735, -964.0165759080003, 0.074257, 0.052017, 0.20266, -954.697950834, 0.078815, 0.054184, 0.211667, -945.3769491660001, 0.083446, 0.056225, 0.220755, -936.058324092, 0.088155, 0.058133, 0.229922, -926.737322424, 0.092949, 0.059904, 0.239164, -917.4186973499998, 0.097833, 0.061531, 0.248477, -908.0976956819999, 0.102815, 0.06301, 0.257854, -898.776694014, 0.107899, 0.064335, 0.267289, -889.4580689399997, 0.113094, 0.065492, 0.276784, -880.1370672719999, 0.118405, 0.066479, 0.286321, -870.8184421980002, 0.123833, 0.067295, 0.295879, -861.4974405300002, 0.12938, 0.067935, 0.305443, -852.1788154560002, 0.135053, 0.068391, 0.315, -842.8578137880002, 0.140858, 0.068654, 0.324538, -833.5368121200001, 0.146785, 0.068738, 0.334011, -824.218187046, 0.152839, 0.068637, 0.343404, -814.8971853780001, 0.159018, 0.068354, 0.352688, -805.5785603039999, 0.165308, 0.067911, 0.361816, -796.257558636, 0.171713, 0.067305, 0.370771, -786.9389335619999, 0.178212, 0.066576, 0.379497, -777.6179318939999, 0.184801, 0.065732, 0.387973, -768.2969302259999, 0.19146, 0.064818, 0.396152, -758.9783051520003, 0.198177, 0.063862, 0.404009, -749.6573034839998, 0.204935, 0.062907, 0.411514, -740.3386784100002, 0.211718, 0.061992, 0.418647, -731.0176767420003, 0.218512, 0.061158, 0.425392, -721.699051668, 0.225302, 0.060445, 0.431742, -712.3780500000001, 0.232077, 0.059889, 0.437695, -703.0570483320002, 0.238826, 0.059517, 0.443256, -693.738423258, 0.245543, 0.059352, 0.448436, -684.41742159, 0.25222, 0.059415, 0.453248, -675.0987965159999, 0.258857, 0.059706, 0.45771, -665.777794848, 0.265447, 0.060237, 0.46184, -656.4591697739999, 0.271994, 0.060994, 0.46566, -647.1381681059999, 0.278493, 0.061978, 0.46919, -637.817166438, 0.284951, 0.063168, 0.472451, -628.4985413639997, 0.291366, 0.064553, 0.475462, -619.1775396959998, 0.29774, 0.066117, 0.478243, -609.8589146220002, 0.304081, 0.067835, 0.480812, -600.5379129540003, 0.310382, 0.069702, 0.483186, -591.21928788, 0.316654, 0.07169, 0.48538, -581.8982862120001, 0.322899, 0.073782, 0.487408, -572.5772845440001, 0.329114, 0.075972, 0.489287, -563.25865947, 0.335308, 0.078236, 0.491024, -553.9376578020001, 0.341482, 0.080564, 0.492631, -544.6190327279999, 0.347636, 0.082946, 0.494121, -535.29803106, 0.353773, 0.085373, 0.495501, -525.9794059860003, 0.359898, 0.087831, 0.496778, -516.6584043179998, 0.366012, 0.090314, 0.49796, -507.33740264999994, 0.372116, 0.092816, 0.499053, -498.0187775760003, 0.378211, 0.095332, 0.500067, -488.6977759079998, 0.384299, 0.097855, 0.501002, -479.37915083400014, 0.390384, 0.100379, 0.501864, -470.05814916600025, 0.396467, 0.102902, 0.502658, -460.739524092, 0.402548, 0.10542, 0.503386, -451.4185224240001, 0.408629, 0.10793, 0.504052, -442.09989735, 0.414709, 0.110431, 0.504662, -432.778895682, 0.420791, 0.11292, 0.505215, -423.4578940140001, 0.426877, 0.115395, 0.505714, -414.13926893999985, 0.432967, 0.117855, 0.50616, -404.81826727199996, 0.439062, 0.120298, 0.506555, -395.49964219799983, 0.445163, 0.122724, 0.506901, -386.1786405299998, 0.451271, 0.125132, 0.507198, -376.86001545600016, 0.457386, 0.127522, 0.507448, -367.5390137879997, 0.463508, 0.129893, 0.507652, -358.21801212000025, 0.46964, 0.132245, 0.507809, -348.89938704600013, 0.47578, 0.134577, 0.507921, -339.57838537800023, 0.481929, 0.136891, 0.507989, -330.259760304, 0.488088, 0.139186, 0.508011, -320.9387586360001, 0.494258, 0.141462, 0.507988, -311.620133562, 0.500438, 0.143719, 0.50792, -302.29913189399997, 0.506629, 0.145958, 0.507806, -292.9781302260001, 0.512831, 0.148179, 0.507648, -283.65950515199984, 0.519045, 0.150383, 0.507443, -274.33850348399994, 0.52527, 0.152569, 0.507192, -265.0198784100003, 0.531507, 0.154739, 0.506895, -255.6988767419998, 0.537755, 0.156894, 0.506551, -246.38025166800014, 0.544015, 0.159033, 0.506159, -237.05925000000025, 0.550287, 0.161158, 0.505719, -227.73824833199978, 0.556571, 0.163269, 0.50523, -218.41962325800012, 0.562866, 0.165368, 0.504692, -209.09862159000022, 0.569172, 0.167454, 0.504105, -199.77999651599998, 0.57549, 0.16953, 0.503466, -190.4589948480001, 0.581819, 0.171596, 0.502777, -181.14036977399996, 0.588158, 0.173652, 0.502035, -171.81936810599996, 0.594508, 0.175701, 0.501241, -162.49836643799995, 0.600868, 0.177743, 0.500394, -153.17974136399994, 0.607238, 0.179779, 0.499492, -143.85873969599993, 0.613617, 0.181811, 0.498536, -134.5401146219997, 0.620005, 0.18384, 0.497524, -125.21911295400037, 0.626401, 0.185867, 0.496456, -115.90048788000013, 0.632805, 0.187893, 0.495332, -106.57948621200012, 0.639216, 0.189921, 0.49415, -97.25848454400034, 0.645633, 0.191952, 0.49291, -87.9398594700001, 0.652056, 0.193986, 0.491611, -78.6188578020001, 0.658483, 0.196027, 0.490253, -69.30023272800008, 0.664915, 0.198075, 0.488836, -59.979231060000075, 0.671349, 0.200133, 0.487358, -50.66060598599984, 0.677786, 0.202203, 0.485819, -41.33960431799983, 0.684224, 0.204286, 0.484219, -32.01860265000005, 0.690661, 0.206384, 0.482558, -22.69997757599981, 0.697098, 0.208501, 0.480835, -13.378975907999802, 0.703532, 0.210638, 0.479049, -4.060350834000246, 0.709962, 0.212797, 0.477201, 5.2606508340002165, 0.716387, 0.214982, 0.47529, 14.579275908000454, 0.722805, 0.217194, 0.473316, 23.90027757599978, 0.729216, 0.219437, 0.471279, 33.21890265000002, 0.735616, 0.221713, 0.46918, 42.5399043179998, 0.742004, 0.224025, 0.467018, 51.86090598599981, 0.748378, 0.226377, 0.464794, 61.179531060000045, 0.754737, 0.228772, 0.462509, 70.50053272800005, 0.761077, 0.231214, 0.460162, 79.81915780199961, 0.767398, 0.233705, 0.457755, 89.14015947000007, 0.773695, 0.236249, 0.455289, 98.45878454400031, 0.779968, 0.238851, 0.452765, 107.77978621199964, 0.786212, 0.241514, 0.450184, 117.1007878800001, 0.792427, 0.244242, 0.447543, 126.41941295400034, 0.798608, 0.24704, 0.444848, 135.74041462199966, 0.804752, 0.249911, 0.442102, 145.0590396959999, 0.810855, 0.252861, 0.439305, 154.38004136400036, 0.816914, 0.255895, 0.436461, 163.69866643799992, 0.822926, 0.259016, 0.433573, 173.01966810599993, 0.828886, 0.262229, 0.430644, 182.34066977399993, 0.834791, 0.26554, 0.427671, 191.65929484799994, 0.840636, 0.268953, 0.424666, 200.98029651599995, 0.846416, 0.272473, 0.421631, 210.2989215900002, 0.852126, 0.276106, 0.418573, 219.6199232580002, 0.857763, 0.279857, 0.415496, 228.93854833199975, 0.86332, 0.283729, 0.412403, 238.25955000000022, 0.868793, 0.287728, 0.409303, 247.58055166799954, 0.874176, 0.291859, 0.406205, 256.8991767419998, 0.879464, 0.296125, 0.403118, 266.22017841000024, 0.884651, 0.30053, 0.400047, 275.5388034839998, 0.889731, 0.305079, 0.397002, 284.8598051519998, 0.8947, 0.309773, 0.393995, 294.17843022600005, 0.899552, 0.314616, 0.391037, 303.49943189400005, 0.904281, 0.31961, 0.388137, 312.82043356199983, 0.908884, 0.324755, 0.385308, 322.1390586360001, 0.913354, 0.330052, 0.382563, 331.4600603040001, 0.917689, 0.3355, 0.379915, 340.77868537799964, 0.921884, 0.341098, 0.377376, 350.0996870460001, 0.925937, 0.346844, 0.374959, 359.41831212000034, 0.929845, 0.352734, 0.372677, 368.73931378799966, 0.933606, 0.358764, 0.370541, 378.0603154560001, 0.937221, 0.364929, 0.368567, 387.37894053000036, 0.940687, 0.371224, 0.366762, 396.6999421979997, 0.944006, 0.377643, 0.365136, 406.0185672719999, 0.94718, 0.384178, 0.363701, 415.3395689400004, 0.95021, 0.39082, 0.362468, 424.65819401399995, 0.953099, 0.397563, 0.361438, 433.97919568199995, 0.955849, 0.4044, 0.360619, 443.30019734999996, 0.958464, 0.411324, 0.360014, 452.618822424, 0.960949, 0.418323, 0.35963, 461.939824092, 0.96331, 0.42539, 0.359469, 471.2584491660002, 0.965549, 0.432519, 0.359529, 480.57945083399954, 0.967671, 0.439703, 0.35981, 489.8980759079998, 0.96968, 0.446936, 0.360311, 499.21907757600025, 0.971582, 0.45421, 0.36103, 508.5377026500005, 0.973381, 0.46152, 0.361965, 517.8587043179998, 0.975082, 0.468861, 0.363111, 527.1797059860003, 0.97669, 0.476226, 0.364466, 536.4983310599998, 0.97821, 0.483612, 0.366025, 545.8193327279998, 0.979645, 0.491014, 0.367783, 555.1379578020001, 0.981, 0.498428, 0.369734, 564.4589594700001, 0.982279, 0.505851, 0.371874, 573.7775845439996, 0.983485, 0.51328, 0.374198, 583.0985862120001, 0.984622, 0.520713, 0.376698, 592.4195878800001, 0.985693, 0.528148, 0.379371, 601.7382129539997, 0.9867, 0.535582, 0.38221, 611.0592146220001, 0.987646, 0.543015, 0.38521, 620.3778396960004, 0.988533, 0.550446, 0.388365, 629.6988413639997, 0.989363, 0.557873, 0.391671, 639.0174664379999, 0.990138, 0.565296, 0.395122, 648.3384681060004, 0.990871, 0.572706, 0.398714, 657.6594697739997, 0.991558, 0.580107, 0.402441, 666.978094848, 0.992196, 0.587502, 0.406299, 676.299096516, 0.992785, 0.594891, 0.410283, 685.61772159, 0.993326, 0.602275, 0.41439, 694.938723258, 0.993834, 0.609644, 0.418613, 704.2573483320002, 0.994309, 0.616999, 0.42295, 713.57835, 0.994738, 0.62435, 0.427397, 722.899351668, 0.995122, 0.631696, 0.431951, 732.2179767420002, 0.99548, 0.639027, 0.436607, 741.5389784099996, 0.99581, 0.646344, 0.441361, 750.8576034839998, 0.996096, 0.653659, 0.446213, 760.1786051520003, 0.996341, 0.660969, 0.45116, 769.4972302259998, 0.99658, 0.668256, 0.456192, 778.8182318939998, 0.996775, 0.675541, 0.461314, 788.1392335620003, 0.996925, 0.682828, 0.466526, 797.4578586359999, 0.997077, 0.690088, 0.471811, 806.7788603039999, 0.997186, 0.697349, 0.477182, 816.0974853780001, 0.997254, 0.704611, 0.482635, 825.4184870460001, 0.997325, 0.711848, 0.488154, 834.7371121199997, 0.997351, 0.719089, 0.493755, 844.0581137880001, 0.997351, 0.726324, 0.499428, 853.3791154560001, 0.997341, 0.733545, 0.505167, 862.6977405299997, 0.997285, 0.740772, 0.510983, 872.0187421980002, 0.997228, 0.747981, 0.516859, 881.3373672720002, 0.997138, 0.75519, 0.522806, 890.6583689399997, 0.997019, 0.762398, 0.528821, 899.9769940139997, 0.996898, 0.769591, 0.534892, 909.2979956820002, 0.996727, 0.776795, 0.541039, 918.6189973499997, 0.996571, 0.783977, 0.547233, 927.9376224239998, 0.996369, 0.791167, 0.553499, 937.2586240919998, 0.996162, 0.798348, 0.55982, 946.5772491660002, 0.995932, 0.805527, 0.566202, 955.8982508340002, 0.99568, 0.812706, 0.572645, 965.2168759080002, 0.995424, 0.819875, 0.57914, 974.5378775759998, 0.995131, 0.827052, 0.585701, 983.8565026499998, 0.994851, 0.834213, 0.592307, 993.1775043180003, 0.994524, 0.841387, 0.598983, 1002.4985059859998, 0.994222, 0.84854, 0.605696, 1011.8171310599998, 0.993866, 0.855711, 0.612482, 1021.1381327280003, 0.993545, 0.862859, 0.619299, 1030.4567578019999, 0.99317, 0.870024, 0.626189, 1039.7777594699999, 0.992831, 0.877168, 0.633109, 1049.0963845439999, 0.99244, 0.88433, 0.640099, 1058.4173862119999, 0.992089, 0.89147, 0.647116, 1067.73838788, 0.991688, 0.898627, 0.654202, 1077.057012954, 0.991332, 0.905763, 0.661309, 1086.378014622, 0.99093, 0.912915, 0.668481, 1095.6966396959995, 0.99057, 0.920049, 0.675675, 1105.0176413640004, 0.990175, 0.927196, 0.682926, 1114.3362664380004, 0.989815, 0.934329, 0.690198, 1123.657268106, 0.989434, 0.94147, 0.697519, 1132.9782697740004, 0.989077, 0.948604, 0.704863, 1142.2968948480004, 0.988717, 0.955742, 0.712242, 1151.617896516, 0.988367, 0.962878, 0.719649, 1160.93652159, 0.988033, 0.970012, 0.727077, 1170.257523258, 0.987691, 0.977154, 0.734536, 1179.576148332, 0.987387, 0.984288, 0.742002, 1188.89715, 0.987053, 0.991438, 0.749504] + curvatureLUT.UseLogScale = 0 + curvatureLUT.ColorSpace = 'RGB' + curvatureLUT.UseBelowRangeColor = 0 + curvatureLUT.BelowRangeColor = [0.0, 0.0, 0.0] + curvatureLUT.UseAboveRangeColor = 0 + curvatureLUT.AboveRangeColor = [0.5, 0.5, 0.5] + curvatureLUT.NanColor = [0.0, 1.0, 0.0] + curvatureLUT.NanOpacity = 1.0 + curvatureLUT.Discretize = 1 + curvatureLUT.NumberOfTableValues = 256 + curvatureLUT.ScalarRangeInitialized = 1.0 + curvatureLUT.HSVWrap = 0 + curvatureLUT.VectorComponent = 0 + curvatureLUT.VectorMode = 'Magnitude' + curvatureLUT.AllowDuplicateScalars = 1 + curvatureLUT.Annotations = [] + curvatureLUT.ActiveAnnotatedValues = [] + curvatureLUT.IndexedColors = [] + curvatureLUT.IndexedOpacities = [] + + # get opacity transfer function/opacity map for 'curvature' + curvaturePWF = GetOpacityTransferFunction('curvature') + curvaturePWF.Points = [-1187.69685, 0.8602941036224365, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + curvaturePWF.AllowDuplicateScalars = 1 + curvaturePWF.UseLogScale = 0 + curvaturePWF.ScalarRangeInitialized = 1 + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + curvatureLUT.ApplyPreset('Cold and Hot', True) + + + + #NEW: + + # set active source + SetActiveSource(transform1) + + # get color transfer function/color map for 'curvature' + curvatureLUT = GetColorTransferFunction('curvature') + curvatureLUT.RGBPoints = [-1187.69685, 0.0, 1.0, 1.0, -118.22955000000002, 0.0, 0.0, 1.0, 0.6001499999999851, 0.0, 0.0, 0.501960784314, 119.42984999999999, 1.0, 0.0, 0.0, 1188.89715, 1.0, 1.0, 0.0] + curvatureLUT.ColorSpace = 'RGB' + curvatureLUT.ScalarRangeInitialized = 1.0 + + # get opacity transfer function/opacity map for 'curvature' + curvaturePWF = GetOpacityTransferFunction('curvature') + curvaturePWF.Points = [-1187.69685, 0.8602941036224365, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + curvaturePWF.ScalarRangeInitialized = 1 + + # Properties modified on curvatureLUT + curvatureLUT.EnableOpacityMapping = 1 + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.6911764740943909, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.6691176295280457, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.6617646813392639, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.6323529481887817, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5073529481887817, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.47058823704719543, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.4779411852359772, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.4852941334247589, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -328.2367841697693, 0.6691176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -231.0803985595703, 0.5441176295280457, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -246.02752685546875, 0.5588235259056091, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -253.5010986328125, 0.5588235259056091, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -679.4943625218383, 0.625, 0.5, 0.0, -253.5010986328125, 0.5661764740943909, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # Properties modified on curvaturePWF + curvaturePWF.Points = [-1187.69685, 0.5, 0.5, 0.0, -694.4414672851562, 0.5147058963775635, 0.5, 0.0, -253.5010986328125, 0.5661764740943909, 0.5, 0.0, 396.61992227722794, 0.8676470518112183, 0.5, 0.0, 561.1175226475239, 0.6911764740943909, 0.5, 0.0, 1188.89715, 0.8014705777168274, 0.5, 0.0] + + # create a new 'Contour' + contour1 = Contour(Input=transform1) + contour1.ContourBy = ['POINTS', 'Type'] + contour1.Isosurfaces = [2.0] + contour1.PointMergeMethod = 'Uniform Binning' + + # Properties modified on contour1 + contour1.ContourBy = ['POINTS', 'curvature'] + contour1.Isosurfaces = [0.0] + + # show data in view + contour1Display = Show(contour1, renderView1) + + # trace defaults for the display properties. + contour1Display.Representation = 'Surface' + contour1Display.ColorArrayName = ['POINTS', 'curvature'] + contour1Display.LookupTable = curvatureLUT + contour1Display.OSPRayScaleArray = 'curvature' + contour1Display.OSPRayScaleFunction = 'PiecewiseFunction' + contour1Display.SelectOrientationVectors = 'None' + contour1Display.ScaleFactor = 0.09752500000000001 + contour1Display.SelectScaleArray = 'curvature' + contour1Display.GlyphType = 'Arrow' + contour1Display.GlyphTableIndexArray = 'curvature' + contour1Display.GaussianRadius = 0.00487625 + contour1Display.SetScaleArray = ['POINTS', 'curvature'] + contour1Display.ScaleTransferFunction = 'PiecewiseFunction' + contour1Display.OpacityArray = ['POINTS', 'curvature'] + contour1Display.OpacityTransferFunction = 'PiecewiseFunction' + contour1Display.DataAxesGrid = 'GridAxesRepresentation' + contour1Display.PolarAxes = 'PolarAxesRepresentation' + + # init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction' + contour1Display.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0] + + # init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' + contour1Display.ScaleTransferFunction.Points = [0.0, 0.8602941036224365, 0.5, 0.0, 2.5142493840581125e-39, 0.625, 0.5, 0.0, 4.252039284300157e-39, 0.6691176295280457, 0.5, 0.0, 7.838150278676329e-39, 0.8676470518112183, 0.5, 0.0, 8.651975477491057e-39, 0.6911764740943909, 0.5, 0.0, 1.1757813367477812e-38, 0.8014705777168274, 0.5, 0.0] + + # init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' + contour1Display.OpacityTransferFunction.Points = [0.0, 0.8602941036224365, 0.5, 0.0, 2.5142493840581125e-39, 0.625, 0.5, 0.0, 4.252039284300157e-39, 0.6691176295280457, 0.5, 0.0, 7.838150278676329e-39, 0.8676470518112183, 0.5, 0.0, 8.651975477491057e-39, 0.6911764740943909, 0.5, 0.0, 1.1757813367477812e-38, 0.8014705777168274, 0.5, 0.0] + + # show color bar/color legend + contour1Display.SetScalarBarVisibility(renderView1, True) + + # find source + xMLStructuredGridReader1 = FindSource('XMLStructuredGridReader1') + + # update the view to ensure updated data information + renderView1.Update() + + # set scalar coloring using an separate color/opacity maps + ColorBy(contour1Display, ('POINTS', 'curvature'), True) + + # Hide the scalar bar for this color map if no visible data is colored by it. + HideScalarBarIfNotNeeded(curvatureLUT, renderView1) + + # rescale color and/or opacity maps used to include current data range + contour1Display.RescaleTransferFunctionToDataRange(True, False) + + # show color bar/color legend + contour1Display.SetScalarBarVisibility(renderView1, True) + + # get separate color transfer function/color map for 'curvature' + separate_contour1Display_curvatureLUT = GetColorTransferFunction('curvature', contour1Display, separate=True) + separate_contour1Display_curvatureLUT.RGBPoints = [0.0, 0.001462, 0.000466, 0.013866, 4.611414402724776e-41, 0.002258, 0.001295, 0.018331, 9.2216530241129e-41, 0.003279, 0.002305, 0.023708, 1.3833067426837675e-40, 0.004512, 0.00349, 0.029965, 1.84433060482258e-40, 0.00595, 0.004843, 0.03713, 2.3054720450950578e-40, 0.007588, 0.006356, 0.044973, 2.766495907233844e-40, 0.009426, 0.008022, 0.052844, 3.2276373475063216e-40, 0.011465, 0.009828, 0.06075, 3.688778787778825e-40, 0.013708, 0.011771, 0.068667, 4.1498026499176114e-40, 0.016156, 0.01384, 0.076603, 4.6109440901900895e-40, 0.018815, 0.016026, 0.084584, 5.071967952328902e-40, 0.021692, 0.01832, 0.09261, 5.533109392601379e-40, 0.024792, 0.020715, 0.100676, 5.994133254740192e-40, 0.028123, 0.023201, 0.108787, 6.455274695012669e-40, 0.031696, 0.025765, 0.116965, 6.9164161352851465e-40, 0.03552, 0.028397, 0.125209, 7.37743999742396e-40, 0.039608, 0.03109, 0.133515, 7.838581437696437e-40, 0.04383, 0.03383, 0.141886, 8.299605299835249e-40, 0.048062, 0.036607, 0.150327, 8.760746740107726e-40, 0.05232, 0.039407, 0.158841, 9.221770602246514e-40, 0.056615, 0.04216, 0.167446, 9.682912042518991e-40, 0.060949, 0.044794, 0.176129, 1.0144053482791495e-39, 0.06533, 0.047318, 0.184892, 1.060507734493028e-39, 0.069764, 0.049726, 0.193735, 1.1066218785202758e-39, 0.074257, 0.052017, 0.20266, 1.152724264734157e-39, 0.078815, 0.054184, 0.211667, 1.1988384087614049e-39, 0.083446, 0.056225, 0.220755, 1.2449407949752861e-39, 0.088155, 0.058133, 0.229922, 1.2910549390025338e-39, 0.092949, 0.059904, 0.239164, 1.337157325216415e-39, 0.097833, 0.061531, 0.248477, 1.3832714692436628e-39, 0.102815, 0.06301, 0.257854, 1.4293856132709107e-39, 0.107899, 0.064335, 0.267289, 1.475487999484792e-39, 0.113094, 0.065492, 0.276784, 1.5216021435120396e-39, 0.118405, 0.066479, 0.286321, 1.5677045297259182e-39, 0.123833, 0.067295, 0.295879, 1.613818673753166e-39, 0.12938, 0.067935, 0.305443, 1.6599210599670472e-39, 0.135053, 0.068391, 0.315, 1.706035203994295e-39, 0.140858, 0.068654, 0.324538, 1.7521493480215426e-39, 0.146785, 0.068738, 0.334011, 1.7982517342354242e-39, 0.152839, 0.068637, 0.343404, 1.844365878262672e-39, 0.159018, 0.068354, 0.352688, 1.890468264476553e-39, 0.165308, 0.067911, 0.361816, 1.936582408503801e-39, 0.171713, 0.067305, 0.370771, 1.982684794717682e-39, 0.178212, 0.066576, 0.379497, 2.0287989387449298e-39, 0.184801, 0.065732, 0.387973, 2.0749130827721775e-39, 0.19146, 0.064818, 0.396152, 2.121015468986056e-39, 0.198177, 0.063862, 0.404009, 2.1671296130133065e-39, 0.204935, 0.062907, 0.411514, 2.213231999227185e-39, 0.211718, 0.061992, 0.418647, 2.2593461432544328e-39, 0.218512, 0.061158, 0.425392, 2.305448529468314e-39, 0.225302, 0.060445, 0.431742, 2.351562673495562e-39, 0.232077, 0.059889, 0.437695, 2.3976768175228098e-39, 0.238826, 0.059517, 0.443256, 2.443779203736691e-39, 0.245543, 0.059352, 0.448436, 2.4898933477639387e-39, 0.25222, 0.059415, 0.453248, 2.53599573397782e-39, 0.258857, 0.059706, 0.45771, 2.5821098780050677e-39, 0.265447, 0.060237, 0.46184, 2.628212264218949e-39, 0.271994, 0.060994, 0.46566, 2.6743264082461966e-39, 0.278493, 0.061978, 0.46919, 2.7204405522734444e-39, 0.284951, 0.063168, 0.472451, 2.7665429384873256e-39, 0.291366, 0.064553, 0.475462, 2.8126570825145736e-39, 0.29774, 0.066117, 0.478243, 2.8587594687284522e-39, 0.304081, 0.067835, 0.480812, 2.9048736127557e-39, 0.310382, 0.069702, 0.483186, 2.950975998969581e-39, 0.316654, 0.07169, 0.48538, 2.9970901429968286e-39, 0.322899, 0.073782, 0.487408, 3.0432042870240766e-39, 0.329114, 0.075972, 0.489287, 3.089306673237958e-39, 0.335308, 0.078236, 0.491024, 3.135420817265206e-39, 0.341482, 0.080564, 0.492631, 3.181523203479087e-39, 0.347636, 0.082946, 0.494121, 3.2276373475063345e-39, 0.353773, 0.085373, 0.495501, 3.273739733720213e-39, 0.359898, 0.087831, 0.496778, 3.319853877747464e-39, 0.366012, 0.090314, 0.49796, 3.365968021774711e-39, 0.372116, 0.092816, 0.499053, 3.41207040798859e-39, 0.378211, 0.095332, 0.500067, 3.4581845520158405e-39, 0.384299, 0.097855, 0.501002, 3.504286938229719e-39, 0.390384, 0.100379, 0.501864, 3.5504010822569665e-39, 0.396467, 0.102902, 0.502658, 3.5965034684708484e-39, 0.402548, 0.10542, 0.503386, 3.642617612498096e-39, 0.408629, 0.10793, 0.504052, 3.688719998711977e-39, 0.414709, 0.110431, 0.504662, 3.734834142739225e-39, 0.420791, 0.11292, 0.505215, 3.7809482867664724e-39, 0.426877, 0.115395, 0.505714, 3.8270506729803536e-39, 0.432967, 0.117855, 0.50616, 3.873164817007602e-39, 0.439062, 0.120298, 0.506555, 3.919267203221483e-39, 0.445163, 0.122724, 0.506901, 3.96538134724873e-39, 0.451271, 0.125132, 0.507198, 4.011483733462609e-39, 0.457386, 0.127522, 0.507448, 4.0575978774898596e-39, 0.463508, 0.129893, 0.507652, 4.103712021517105e-39, 0.46964, 0.132245, 0.507809, 4.149814407730986e-39, 0.47578, 0.134577, 0.507921, 4.1959285517582336e-39, 0.481929, 0.136891, 0.507989, 4.242030937972115e-39, 0.488088, 0.139186, 0.508011, 4.288145081999363e-39, 0.494258, 0.141462, 0.507988, 4.334247468213244e-39, 0.500438, 0.143719, 0.50792, 4.3803616122404915e-39, 0.506629, 0.145958, 0.507806, 4.4264757562677396e-39, 0.512831, 0.148179, 0.507648, 4.472578142481621e-39, 0.519045, 0.150383, 0.507443, 4.518692286508868e-39, 0.52527, 0.152569, 0.507192, 4.564794672722747e-39, 0.531507, 0.154739, 0.506895, 4.6109088167499975e-39, 0.537755, 0.156894, 0.506551, 4.657011202963876e-39, 0.544015, 0.159033, 0.506159, 4.703125346991124e-39, 0.550287, 0.161158, 0.505719, 4.749239491018374e-39, 0.556571, 0.163269, 0.50523, 4.795341877232253e-39, 0.562866, 0.165368, 0.504692, 4.841456021259501e-39, 0.569172, 0.167454, 0.504105, 4.887558407473382e-39, 0.57549, 0.16953, 0.503466, 4.9336725515006294e-39, 0.581819, 0.171596, 0.502777, 4.9797749377145106e-39, 0.588158, 0.173652, 0.502035, 5.025889081741759e-39, 0.594508, 0.175701, 0.501241, 5.072003225769006e-39, 0.600868, 0.177743, 0.500394, 5.118105611982888e-39, 0.607238, 0.179779, 0.499492, 5.1642197560101354e-39, 0.613617, 0.181811, 0.498536, 5.2103221422240166e-39, 0.620005, 0.18384, 0.497524, 5.256436286251262e-39, 0.626401, 0.185867, 0.496456, 5.302538672465143e-39, 0.632805, 0.187893, 0.495332, 5.3486528164923907e-39, 0.639216, 0.189921, 0.49415, 5.394766960519639e-39, 0.645633, 0.191952, 0.49291, 5.44086934673352e-39, 0.652056, 0.193986, 0.491611, 5.486983490760767e-39, 0.658483, 0.196027, 0.490253, 5.5330858769746485e-39, 0.664915, 0.198075, 0.488836, 5.5792000210018966e-39, 0.671349, 0.200133, 0.487358, 5.625302407215778e-39, 0.677786, 0.202203, 0.485819, 5.671416551243026e-39, 0.684224, 0.204286, 0.484219, 5.717530695270273e-39, 0.690661, 0.206384, 0.482558, 5.7636330814841545e-39, 0.697098, 0.208501, 0.480835, 5.8097472255114025e-39, 0.703532, 0.210638, 0.479049, 5.855849611725281e-39, 0.709962, 0.212797, 0.477201, 5.901963755752531e-39, 0.716387, 0.214982, 0.47529, 5.948066141966412e-39, 0.722805, 0.217194, 0.473316, 5.994180285993657e-39, 0.729216, 0.219437, 0.471279, 6.040282672207538e-39, 0.735616, 0.221713, 0.46918, 6.086396816234787e-39, 0.742004, 0.224025, 0.467018, 6.132510960262034e-39, 0.748378, 0.226377, 0.464794, 6.178613346475916e-39, 0.754737, 0.228772, 0.462509, 6.224727490503163e-39, 0.761077, 0.231214, 0.460162, 6.270829876717042e-39, 0.767398, 0.233705, 0.457755, 6.316944020744293e-39, 0.773695, 0.236249, 0.455289, 6.363046406958174e-39, 0.779968, 0.238851, 0.452765, 6.409160550985419e-39, 0.786212, 0.241514, 0.450184, 6.455274695012669e-39, 0.792427, 0.244242, 0.447543, 6.50137708122655e-39, 0.798608, 0.24704, 0.444848, 6.547491225253795e-39, 0.804752, 0.249911, 0.442102, 6.593593611467676e-39, 0.810855, 0.252861, 0.439305, 6.639707755494928e-39, 0.816914, 0.255895, 0.436461, 6.685810141708806e-39, 0.822926, 0.259016, 0.433573, 6.731924285736054e-39, 0.828886, 0.262229, 0.430644, 6.778038429763301e-39, 0.834791, 0.26554, 0.427671, 6.824140815977182e-39, 0.840636, 0.268953, 0.424666, 6.870254960004431e-39, 0.846416, 0.272473, 0.421631, 6.916357346218312e-39, 0.852126, 0.276106, 0.418573, 6.96247149024556e-39, 0.857763, 0.279857, 0.415496, 7.008573876459438e-39, 0.86332, 0.283729, 0.412403, 7.054688020486688e-39, 0.868793, 0.287728, 0.409303, 7.100802164513933e-39, 0.874176, 0.291859, 0.406205, 7.146904550727814e-39, 0.879464, 0.296125, 0.403118, 7.193018694755065e-39, 0.884651, 0.30053, 0.400047, 7.239121080968944e-39, 0.889731, 0.305079, 0.397002, 7.285235224996191e-39, 0.8947, 0.309773, 0.393995, 7.331337611210073e-39, 0.899552, 0.314616, 0.391037, 7.37745175523732e-39, 0.904281, 0.31961, 0.388137, 7.423565899264569e-39, 0.908884, 0.324755, 0.385308, 7.46966828547845e-39, 0.913354, 0.330052, 0.382563, 7.515782429505697e-39, 0.917689, 0.3355, 0.379915, 7.561884815719576e-39, 0.921884, 0.341098, 0.377376, 7.607998959746826e-39, 0.925937, 0.346844, 0.374959, 7.654101345960707e-39, 0.929845, 0.352734, 0.372677, 7.700215489987953e-39, 0.933606, 0.358764, 0.370541, 7.746329634015203e-39, 0.937221, 0.364929, 0.368567, 7.792432020229085e-39, 0.940687, 0.371224, 0.366762, 7.83854616425633e-39, 0.944006, 0.377643, 0.365136, 7.88464855047021e-39, 0.94718, 0.384178, 0.363701, 7.93076269449746e-39, 0.95021, 0.39082, 0.362468, 7.976865080711339e-39, 0.953099, 0.397563, 0.361438, 8.022979224738588e-39, 0.955849, 0.4044, 0.360619, 8.069093368765835e-39, 0.958464, 0.411324, 0.360014, 8.115195754979717e-39, 0.960949, 0.418323, 0.35963, 8.161309899006964e-39, 0.96331, 0.42539, 0.359469, 8.207412285220845e-39, 0.965549, 0.432519, 0.359529, 8.253526429248091e-39, 0.967671, 0.439703, 0.35981, 8.299628815461972e-39, 0.96968, 0.446936, 0.360311, 8.345742959489222e-39, 0.971582, 0.45421, 0.36103, 8.391845345703104e-39, 0.973381, 0.46152, 0.361965, 8.437959489730349e-39, 0.975082, 0.468861, 0.363111, 8.484073633757599e-39, 0.97669, 0.476226, 0.364466, 8.530176019971477e-39, 0.97821, 0.483612, 0.366025, 8.576290163998726e-39, 0.979645, 0.491014, 0.367783, 8.622392550212607e-39, 0.981, 0.498428, 0.369734, 8.668506694239854e-39, 0.982279, 0.505851, 0.371874, 8.714609080453733e-39, 0.983485, 0.51328, 0.374198, 8.760723224480983e-39, 0.984622, 0.520713, 0.376698, 8.806837368508232e-39, 0.985693, 0.528148, 0.379371, 8.85293975472211e-39, 0.9867, 0.535582, 0.38221, 8.89905389874936e-39, 0.987646, 0.543015, 0.38521, 8.945156284963242e-39, 0.988533, 0.550446, 0.388365, 8.991270428990486e-39, 0.989363, 0.557873, 0.391671, 9.037372815204368e-39, 0.990138, 0.565296, 0.395122, 9.083486959231618e-39, 0.990871, 0.572706, 0.398714, 9.129601103258864e-39, 0.991558, 0.580107, 0.402441, 9.175703489472745e-39, 0.992196, 0.587502, 0.406299, 9.221817633499992e-39, 0.992785, 0.594891, 0.410283, 9.267920019713874e-39, 0.993326, 0.602275, 0.41439, 9.314034163741121e-39, 0.993834, 0.609644, 0.418613, 9.360136549955002e-39, 0.994309, 0.616999, 0.42295, 9.406250693982251e-39, 0.994738, 0.62435, 0.427397, 9.452364838009498e-39, 0.995122, 0.631696, 0.431951, 9.49846722422338e-39, 0.99548, 0.639027, 0.436607, 9.544581368250624e-39, 0.99581, 0.646344, 0.441361, 9.590683754464506e-39, 0.996096, 0.653659, 0.446213, 9.636797898491756e-39, 0.996341, 0.660969, 0.45116, 9.682900284705634e-39, 0.99658, 0.668256, 0.456192, 9.729014428732883e-39, 0.996775, 0.675541, 0.461314, 9.775128572760133e-39, 0.996925, 0.682828, 0.466526, 9.821230958974011e-39, 0.997077, 0.690088, 0.471811, 9.867345103001259e-39, 0.997186, 0.697349, 0.477182, 9.91344748921514e-39, 0.997254, 0.704611, 0.482635, 9.959561633242389e-39, 0.997325, 0.711848, 0.488154, 1.0005664019456267e-38, 0.997351, 0.719089, 0.493755, 1.0051778163483517e-38, 0.997351, 0.726324, 0.499428, 1.0097892307510765e-38, 0.997341, 0.733545, 0.505167, 1.0143994693724643e-38, 0.997285, 0.740772, 0.510983, 1.0190108837751893e-38, 0.997228, 0.747981, 0.516859, 1.0236211223965776e-38, 0.997138, 0.75519, 0.522806, 1.0282325367993021e-38, 0.997019, 0.762398, 0.528821, 1.0328427754206902e-38, 0.996898, 0.769591, 0.534892, 1.0374541898234152e-38, 0.996727, 0.776795, 0.541039, 1.0420656042261397e-38, 0.996571, 0.783977, 0.547233, 1.0466758428475278e-38, 0.996369, 0.791167, 0.553499, 1.0512872572502527e-38, 0.996162, 0.798348, 0.55982, 1.0558974958716408e-38, 0.995932, 0.805527, 0.566202, 1.0605089102743655e-38, 0.99568, 0.812706, 0.572645, 1.0651191488957537e-38, 0.995424, 0.819875, 0.57914, 1.0697305632984781e-38, 0.995131, 0.827052, 0.585701, 1.0743408019198663e-38, 0.994851, 0.834213, 0.592307, 1.0789522163225914e-38, 0.994524, 0.841387, 0.598983, 1.0835636307253159e-38, 0.994222, 0.84854, 0.605696, 1.088173869346704e-38, 0.993866, 0.855711, 0.612482, 1.092785283749429e-38, 0.993545, 0.862859, 0.619299, 1.0973955223708168e-38, 0.99317, 0.870024, 0.626189, 1.1020069367735416e-38, 0.992831, 0.877168, 0.633109, 1.1066171753949297e-38, 0.99244, 0.88433, 0.640099, 1.1112285897976546e-38, 0.992089, 0.89147, 0.647116, 1.1158400042003793e-38, 0.991688, 0.898627, 0.654202, 1.1204502428217674e-38, 0.991332, 0.905763, 0.661309, 1.1250616572244922e-38, 0.99093, 0.912915, 0.668481, 1.12967189584588e-38, 0.99057, 0.920049, 0.675675, 1.1342833102486052e-38, 0.990175, 0.927196, 0.682926, 1.1388935488699933e-38, 0.989815, 0.934329, 0.690198, 1.1435049632727178e-38, 0.989434, 0.94147, 0.697519, 1.1481163776754428e-38, 0.989077, 0.948604, 0.704863, 1.1527266162968309e-38, 0.988717, 0.955742, 0.712242, 1.1573380306995554e-38, 0.988367, 0.962878, 0.719649, 1.1619482693209435e-38, 0.988033, 0.970012, 0.727077, 1.1665596837236684e-38, 0.987691, 0.977154, 0.734536, 1.1711699223450565e-38, 0.987387, 0.984288, 0.742002, 1.1757813367477812e-38, 0.987053, 0.991438, 0.749504] + separate_contour1Display_curvatureLUT.ColorSpace = 'RGB' + separate_contour1Display_curvatureLUT.NanColor = [0.0, 1.0, 0.0] + separate_contour1Display_curvatureLUT.ScalarRangeInitialized = 1.0 + + # get separate opacity transfer function/opacity map for 'curvature' + separate_contour1Display_curvaturePWF = GetOpacityTransferFunction('curvature', contour1Display, separate=True) + separate_contour1Display_curvaturePWF.Points = [0.0, 0.8602941036224365, 0.5, 0.0, 2.5142493840581125e-39, 0.625, 0.5, 0.0, 4.252039284300157e-39, 0.6691176295280457, 0.5, 0.0, 7.838150278676329e-39, 0.8676470518112183, 0.5, 0.0, 8.651975477491057e-39, 0.6911764740943909, 0.5, 0.0, 1.1757813367477812e-38, 0.8014705777168274, 0.5, 0.0] + separate_contour1Display_curvaturePWF.ScalarRangeInitialized = 1 + + # Apply a preset using its name. Note this may not work as expected when presets have duplicate names. + separate_contour1Display_curvatureLUT.ApplyPreset('X Ray', True) + + # hide color bar/color legend + contour1Display.SetScalarBarVisibility(renderView1, False) + + # hide data in view + # Hide(line1, renderView1) + + + + # get color legend/bar for curvatureLUT in view renderView1 + curvatureLUTColorBar = GetScalarBar(curvatureLUT, renderView1) + curvatureLUTColorBar.Title = 'curvature' + curvatureLUTColorBar.ComponentTitle = '' + + # Properties modified on curvatureLUTColorBar + curvatureLUTColorBar.Title = '$ \\kappa $' + curvatureLUTColorBar.HorizontalTitle = 1 + curvatureLUTColorBar.TitleFontSize = 24 + curvatureLUTColorBar.LabelFontSize = 20 + + transform1Display.Opacity = 0.01 #overall Opacity + + # get display properties + transform1Display = GetDisplayProperties(transform1, view=renderView1) + + # rescale color and/or opacity maps used to exactly fit the current data range + transform1Display.RescaleTransferFunctionToDataRange(False, True) + + + + + + + + + + + + + + + +# update the view to ensure updated data information +renderView1.Update() + + +# ----------------- EXPORT ----------------- +# save screenshot +# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1257, 934]) +# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[2514, 1868]) +# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1063, 657]) + +if gamma == '0' : + # SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_Gamma0.png', renderView1, ImageResolution=[2126, 1314]) + SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_Gamma0.png', renderView1, ImageResolution=[2126, 1314],OverrideColorPalette='WhiteBackground') + +elif gamma == 'infinity': + # SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_GammaInf.png', renderView1, ImageResolution=[2126, 1314]) + SaveScreenshot('/home/klaus/Desktop/3DPhaseDiagramPlot_GammaInf.png', renderView1, ImageResolution=[2126, 1314],OverrideColorPalette='WhiteBackground') +# export view +# ExportView('/home/klaus/Desktop/PhaseDiagramPlot.pdf', view=renderView1) diff --git a/src/Plot-Energy_Axial.py b/src/Plot-Energy_Axial.py new file mode 100644 index 00000000..4d401e2a --- /dev/null +++ b/src/Plot-Energy_Axial.py @@ -0,0 +1,422 @@ +import numpy as np +import matplotlib.pyplot as plt +import sympy as sym +import math +import os +import subprocess +import fileinput +import re +import matlab.engine +import sys +from ClassifyMin import * +from HelperFunctions import * +# from CellScript import * +from mpl_toolkits.mplot3d import Axes3D +import matplotlib.cm as cm +from vtk.util import numpy_support +from pyevtk.hl import gridToVTK +import time +import matplotlib.ticker as ticker + +import matplotlib as mpl +from matplotlib.ticker import MultipleLocator,FormatStrFormatter,MaxNLocator +import pandas as pd + +# from matplotlib import rc +# rc('text', usetex=True) # Use LaTeX font +# +# import seaborn as sns +# sns.set(color_codes=True) + + +def format_func(value, tick_number): + # find number of multiples of pi/2 + # N = int(np.round(2 * value / np.pi)) + # if N == 0: + # return "0" + # elif N == 1: + # return r"$\pi/2$" + # elif N == -1: + # return r"$-\pi/2$" + # elif N == 2: + # return r"$\pi$" + # elif N % 2 > 0: + # return r"${0}\pi/2$".format(N) + # else: + # return r"${0}\pi$".format(N // 2) + ##find number of multiples of pi/2 + N = int(np.round(4 * value / np.pi)) + if N == 0: + return "0" + elif N == 1: + return r"$\pi/4$" + elif N == -1: + return r"$-\pi/4$" + elif N == 2: + return r"$\pi/2$" + elif N == -2: + return r"$-\pi/2$" + elif N % 2 > 0: + return r"${0}\pi/2$".format(N) + else: + return r"${0}\pi$".format(N // 2) + + + +def find_nearest(array, value): + array = np.asarray(array) + idx = (np.abs(array - value)).argmin() + return array[idx] + + +def find_nearestIdx(array, value): + array = np.asarray(array) + idx = (np.abs(array - value)).argmin() + return idx + + +InputFile = "/inputs/computeMuGamma.parset" +OutputFile = "/outputs/outputMuGamma.txt" +# --------- Run from src folder: +path_parent = os.path.dirname(os.getcwd()) +os.chdir(path_parent) +path = os.getcwd() +print(path) +InputFilePath = os.getcwd()+InputFile +OutputFilePath = os.getcwd()+OutputFile +print("InputFilepath: ", InputFilePath) +print("OutputFilepath: ", OutputFilePath) +print("Path: ", path) + +print('---- Input parameters: -----') + +# q1=1; +# q2=2; +# q12=1/2; +# q3=((4*q1*q2)**0.5-q12)/2; +# # H=[2*q1,q12+2*q3;q12+2*q3,2*q2]; +# +# H = np.array([[2*q1, q12+2*q3], [q12+2*q3,2*q2] ]) +# A = np.array([[q1,1/2*q12], [1/2*q12,q2] ]) +# abar = np.array([q12+2*q3, 2*q2]) +# abar = (1.0/math.sqrt((q12+2*q3)**2+(2*q2)**2))*abar +# +# print('abar:',abar) +# +# b = np.linalg.lstsq(A, abar)[0] +# print('b',b) +# +# +# # print('abar:',np.shape(abar)) +# # print('np.transpose(abar):',np.shape(np.transpose(abar))) +# sstar = (1/(q1+q2))*abar.dot(A.dot(b)) +# # sstar = (1/(q1+q2))*abar.dot(tmp) +# print('sstar', sstar) +# abarperp= np.array([abar[1],-abar[0]]) +# print('abarperp:',abarperp) + + +# -------------------------- Input Parameters -------------------- + +mu1 = 1.0 +rho1 = 1.0 +# alpha = 2.0 +# theta = 1.0/4.0 +beta = 2.0 + +#set gamma either to 1. '0' 2. 'infinity' or 3. a numerical positive value +gamma = '0' +gamma = 'infinity' + + +lambda1 = 0.0 + + +print('---- Input parameters: -----') +print('mu1: ', mu1) +print('rho1: ', rho1) +# print('alpha: ', alpha) +print('beta: ', beta) +# print('theta: ', theta) +print('gamma:', gamma) + +print('lambda1: ', lambda1) +print('----------------------------') +# ---------------------------------------------------------------- +print('----------------------------') + +# ---------------------------------------------------------------- + + + + + +# Curve parametrised by \theta_rho = alpha in parameter space +N=100; +theta_rho = np.linspace(1, 3, num=N) +print('theta_rho:', theta_rho) + + +theta_values = [] + + +for t in theta_rho: + + s = (1.0/10.0)*t+0.1 + theta_values.append(s) + + + + + +theta_rho = np.array(theta_rho) +theta_values = np.array(theta_values) + +betas_ = 2.0 + + +# alphas, betas, thetas = np.meshgrid(theta_rho, betas_, theta_values, indexing='ij') +# +# +# harmonicMeanVec = np.vectorize(harmonicMean) +# arithmeticMeanVec = np.vectorize(arithmeticMean) +# prestrain_b1Vec = np.vectorize(prestrain_b1) +# prestrain_b2Vec = np.vectorize(prestrain_b2) +# +# GetMuGammaVec = np.vectorize(GetMuGamma) +# muGammas = GetMuGammaVec(betas,thetas,gamma,mu1,rho1,InputFilePath ,OutputFilePath ) +# +# q1_vec = harmonicMeanVec(mu1, betas, thetas) +# q2_vec = arithmeticMeanVec(mu1, betas, thetas) +# +# b1_vec = prestrain_b1Vec(rho1, betas, alphas, thetas) +# b2_vec = prestrain_b2Vec(rho1, betas, alphas, thetas) + +# special case: q12 == 0!! .. braucht eigentlich nur b1 & b2 ... + +# print('type b1_values:', type(b1_values)) + + + +# print('size(q1)',q1.shape) + + +energy_axial1 = [] +energy_axial2 = [] + +# for b1 in b1_values: +for i in range(len(theta_rho)): + print('index i:', i) + + print('theta_rho[i]',theta_rho[i]) + print('theta_values[i]',theta_values[i]) + + q1 = (1.0/6.0)*harmonicMean(mu1, beta, theta_values[i]) + q2 = (1.0/6.0)*arithmeticMean(mu1, beta, theta_values[i]) + q12 = 0.0 + q3 = GetMuGamma(beta, theta_values[i],gamma,mu1,rho1,InputFilePath ,OutputFilePath ) + b1 = prestrain_b1(rho1,beta, theta_rho[i],theta_values[i] ) + b2 = prestrain_b2(rho1,beta, theta_rho[i],theta_values[i] ) + + + # q2_vec = arithmeticMean(mu1, betas, thetas) + # + # b1_vec = prestrain_b1Vec(rho1, betas, alphas, thetas) + # b2_vec = prestrain_b2Vec(rho1, betas, alphas, thetas) + print('q1[i]',q1) + print('q2[i]',q2) + print('q3[i]',q3) + print('b1[i]',b1) + print('b2[i]',b2) + # print('q1[i]',q1[0][i]) + # print('q2[i]',q2[i]) + # print('b1[i]',b1[i]) + # print('b2[i]',b2[i]) + #compute axial energy #1 ... + + a_axial1 = np.array([b1,0]) + a_axial2 = np.array([0,b2]) + b = np.array([b1,b2]) + + H = np.array([[2*q1, q12+2*q3], [q12+2*q3,2*q2] ]) + A = np.array([[q1,1/2*q12], [1/2*q12,q2] ]) + + + tmp = H.dot(a_axial1) + + print('H',H) + print('A',A) + print('b',b) + print('a_axial1',a_axial1) + print('tmp',tmp) + + tmp = (1/2)*a_axial1.dot(tmp) + print('tmp',tmp) + + tmp2 = A.dot(b) + print('tmp2',tmp2) + tmp2 = 2*a_axial1.dot(tmp2) + + print('tmp2',tmp2) + energy_1 = tmp - tmp2 + print('energy_1',energy_1) + + + energy_axial1.append(energy_1) + + + tmp = H.dot(a_axial2) + + print('H',H) + print('A',A) + print('b',b) + print('a_axial2',a_axial2) + print('tmp',tmp) + + tmp = (1/2)*a_axial2.dot(tmp) + print('tmp',tmp) + + tmp2 = A.dot(b) + print('tmp2',tmp2) + tmp2 = 2*a_axial2.dot(tmp2) + + print('tmp2',tmp2) + energy_2 = tmp - tmp2 + print('energy_2',energy_2) + + + energy_axial2.append(energy_2) + + + + + +print('theta_values', theta_values) + +mpl.rcParams['text.usetex'] = True +mpl.rcParams["font.family"] = "serif" +mpl.rcParams["font.size"] = "9" +width = 6.28 *0.5 +# width = 6.28 +height = width / 1.618 +fig = plt.figure() +ax = plt.axes((0.17,0.21 ,0.75,0.75)) +# ax = plt.axes((0.15,0.18,0.8,0.8)) +# ax.tick_params(axis='x',which='major', direction='out',pad=5) +# ax.tick_params(axis='y',which='major', length=3, width=1, direction='out',pad=3) +# ax.xaxis.set_major_locator(MultipleLocator(0.1)) +# ax.xaxis.set_minor_locator(MultipleLocator(0.05)) +# ax.xaxis.set_major_locator(plt.MultipleLocator(np.pi / 8)) +# ax.xaxis.set_minor_locator(plt.MultipleLocator(np.pi / 16)) +# ax.xaxis.set_major_locator(plt.MultipleLocator(np.pi / 2)) +# ax.xaxis.set_minor_locator(plt.MultipleLocator(np.pi / 4)) +# ax.xaxis.set_major_formatter(plt.FuncFormatter(format_func)) +ax.grid(True,which='major',axis='both',alpha=0.3) + + + + +# ax.plot(theta_rho, theta_values, 'royalblue', zorder=3, ) + + +ax.plot(theta_rho, energy_axial1, 'royalblue', zorder=3, label=r"axialMin1") +ax.plot(theta_rho, energy_axial2, 'forestgreen', zorder=3, label=r"axialMin2") +# ax.plot(-1.0*alphas, kappas, 'red', zorder=3, ) + + + + +lg = ax.legend(bbox_to_anchor=(0.0, 0.75), loc='upper left') + + + + +# +# +# +# +# kappas = [] +# alphas = [] +# # G.append(float(s[0])) +# +# +# +# +# for t in T : +# +# abar_current = sstar*abar+t*abarperp; +# # print('abar_current', abar_current) +# abar_current[abar_current < 1e-10] = 0 +# # print('abar_current', abar_current) +# +# # G = np.array([[2*q1, q12+2*q3], [q12+2*q3,2*q2] ]) +# G = [abar_current[0], abar_current[1] , (2*abar_current[0]*abar_current[1])**0.5 ] +# +# e = [(abar_current[0]/(abar_current[0]+abar_current[1]))**0.5, (abar_current[1]/(abar_current[0]+abar_current[1]))**0.5] +# kappa = abar_current[0]+abar_current[1] +# alpha = math.atan2(e[1], e[0]) +# +# print('angle current:', alpha) +# +# kappas.append(kappa) +# alphas.append(alpha) +# +# +# +# alphas = np.array(alphas) +# kappas = np.array(kappas) +# +# +# print('kappas:',kappas) +# print('alphas:',alphas) +# print('min alpha:', min(alphas)) +# print('min kappa:', min(kappas)) +# +# mpl.rcParams['text.usetex'] = True +# mpl.rcParams["font.family"] = "serif" +# mpl.rcParams["font.size"] = "9" +# width = 6.28 *0.5 +# height = width / 1.618 +# fig = plt.figure() +# # ax = plt.axes((0.15,0.21 ,0.75,0.75)) +# ax = plt.axes((0.15,0.21 ,0.8,0.75)) +# ax.tick_params(axis='x',which='major', direction='out',pad=5) +# ax.tick_params(axis='y',which='major', length=3, width=1, direction='out',pad=3) +# # ax.xaxis.set_major_locator(MultipleLocator(0.1)) +# # ax.xaxis.set_minor_locator(MultipleLocator(0.05)) +# # ax.xaxis.set_major_locator(plt.MultipleLocator(np.pi / 8)) +# # ax.xaxis.set_minor_locator(plt.MultipleLocator(np.pi / 16)) +# ax.xaxis.set_major_locator(plt.MultipleLocator(np.pi / 2)) +# ax.xaxis.set_minor_locator(plt.MultipleLocator(np.pi / 4)) +# ax.xaxis.set_major_formatter(plt.FuncFormatter(format_func)) +# ax.grid(True,which='major',axis='both',alpha=0.3) +# +# +# +# +# ax.plot(alphas, kappas, 'royalblue', zorder=3, ) +# ax.plot(-1.0*alphas, kappas, 'red', zorder=3, ) + + + +ax.set_xlabel(r"$\theta_\rho$") +# ax.set_ylabel(r"$\theta$") +ax.set_ylabel(r"energy") + + +# ax.set_xticks([-np.pi/2, -np.pi/4 ,0, np.pi/4, np.pi/2 ]) +# labels = ['$0$',r'$\pi/8$', r'$\pi/4$' ,r'$3\pi/8$' , r'$\pi/2$'] +# ax.set_yticklabels(labels) + + + + + +# ax.legend(loc='upper right') + + + +fig.set_size_inches(width, height) +fig.savefig('Plot-Energy_Axial.pdf') + +plt.show() diff --git a/src/Plot_Curvature_Alpha.py b/src/Plot_Curvature_Alpha.py index 862bd664..cfb6d3fc 100644 --- a/src/Plot_Curvature_Alpha.py +++ b/src/Plot_Curvature_Alpha.py @@ -186,12 +186,12 @@ theta = 0.1 #TEST beta = 2.0 theta = 0.5 - +# theta = 0.1 beta=10.0 gamma = 'infinity' #Elliptic Setting -gamma = '0' #Hyperbolic Setting +# gamma = '0' #Hyperbolic Setting # gamma = 0.5 @@ -214,6 +214,7 @@ print('----------------------------') xmin = -2.0 # xmin = -1.5 xmax = 1.0 +# xmax = 5.0 # compare with interpolant between endpoints diff --git a/src/Plot_Curvature_TransitionArea.py b/src/Plot_Curvature_TransitionArea.py new file mode 100644 index 00000000..15127c95 --- /dev/null +++ b/src/Plot_Curvature_TransitionArea.py @@ -0,0 +1,815 @@ +import numpy as np +import matplotlib.pyplot as plt +import sympy as sym +import math +import os +import subprocess +import fileinput +import re +import matlab.engine +from HelperFunctions import * +from ClassifyMin import * + +import matplotlib.ticker as tickers +import matplotlib as mpl +from matplotlib.ticker import MultipleLocator,FormatStrFormatter,MaxNLocator +import pandas as pd + +# import tikzplotlib +# # from pylab import * +# from tikzplotlib import save as tikz_save + + +# Needed ? +mpl.use('pdf') + +# from subprocess import Popen, PIPE +#import sys + +###################### makePlot.py ######################### +# Generalized Plot-Script giving the option to define +# quantity of interest and the parameter it depends on +# to create a plot +# +# Input: Define y & x for "x-y plot" as Strings +# - Run the 'Cell-Problem' for the different Parameter-Points +# (alternatively run 'Compute_MuGamma' if quantity of interest +# is q3=muGamma for a significant Speedup) + +########################################################### + + + +# figsize argument takes inputs in inches +# and we have the width of our document in pts. +# To set the figure size we construct a function +# to convert from pts to inches and to determine +# an aesthetic figure height using the golden ratio: +# def set_size(width, fraction=1): +# """Set figure dimensions to avoid scaling in LaTeX. +# +# Parameters +# ---------- +# width: float +# Document textwidth or columnwidth in pts +# fraction: float, optional +# Fraction of the width which you wish the figure to occupy +# +# Returns +# ------- +# fig_dim: tuple +# Dimensions of figure in inches +# """ +# # Width of figure (in pts) +# fig_width_pt = width * fraction +# +# # Convert from pt to inches +# inches_per_pt = 1 / 72.27 +# +# # Golden ratio to set aesthetic figure height +# # https://disq.us/p/2940ij3 +# golden_ratio = (5**.5 - 1) / 2 +# +# # Figure width in inches +# fig_width_in = fig_width_pt * inches_per_pt +# # Figure height in inches +# fig_height_in = fig_width_in * golden_ratio +# +# fig_dim = (fig_width_in, fig_height_in) +# +# return fig_dim +# + + + +def format_func(value, tick_number): + # # find number of multiples of pi/2 + # N = int(np.round(2 * value / np.pi)) + # if N == 0: + # return "0" + # elif N == 1: + # return r"$\pi/2$" + # elif N == 2: + # return r"$\pi$" + # elif N % 2 > 0: + # return r"${0}\pi/2$".format(N) + # else: + # return r"${0}\pi$".format(N // 2) + # find number of multiples of pi/2 + N = int(np.round(4 * value / np.pi)) + if N == 0: + return "0" + elif N == 1: + return r"$\pi/4$" + elif N == 2: + return r"$\pi/2$" + elif N % 2 > 0: + return r"${0}\pi/2$".format(N) + else: + return r"${0}\pi$".format(N // 2) + + + + + +def find_nearest(array, value): + array = np.asarray(array) + idx = (np.abs(array - value)).argmin() + return array[idx] + + +def find_nearestIdx(array, value): + array = np.asarray(array) + idx = (np.abs(array - value)).argmin() + return idx + + + +# TODO +# - Fallunterscheidung (Speedup) falls gesuchter value mu_gamma = q3 +# - Also Add option to plot Minimization Output + + +# ----- Setup Paths ----- +# InputFile = "/inputs/cellsolver.parset" +# OutputFile = "/outputs/output.txt" + +InputFile = "/inputs/computeMuGamma.parset" +OutputFile = "/outputs/outputMuGamma.txt" + +# path = os.getcwd() +# InputFilePath = os.getcwd()+InputFile +# OutputFilePath = os.getcwd()+OutputFile +# --------- Run from src folder: +path_parent = os.path.dirname(os.getcwd()) +os.chdir(path_parent) +path = os.getcwd() +print(path) +InputFilePath = os.getcwd()+InputFile +OutputFilePath = os.getcwd()+OutputFile +print("InputFilepath: ", InputFilePath) +print("OutputFilepath: ", OutputFilePath) +print("Path: ", path) + +#--------------------------------------------------------------- + +print('---- Input parameters: -----') +mu1 = 1.0 #10.0 +# lambda1 = 10.0 +rho1 = 1.0 +alpha = 5.0 +beta = 10.0 +# alpha = 2.0 +# beta = 2.0 +theta = 1.0/8.0 #1.0/4.0 + +lambda1 = 0.0 +# gamma = 1.0/4.0 + +# TEST: +alpha=3.0; + + + + +# # INTERESTING!: +# alpha = 3 +# beta = 10.0 +# theta= 1/8 + + +#Test +beta = 2.0 + + + +gamma = 'infinity' #Elliptic Setting +# gamma = '0' #Hyperbolic Setting +# gamma = 0.5 + + +print('mu1: ', mu1) +print('rho1: ', rho1) +print('alpha: ', alpha) +print('beta: ', beta) +print('theta: ', theta) +print('gamma:', gamma) +print('----------------------------') + + + +# --- define Interval of x-va1ues: +xmin = 0.01 +xmax = 0.41 +xmax = 0.99 + + +Jumps = False + + +numPoints = 400 +# numPoints = 100 +X_Values = np.linspace(xmin, xmax, num=numPoints) +print(X_Values) + + +Y_Values = [] + + + + +Curvature_alpha0 = [] +Curvature_alphaNeg0125 = [] +Curvature_alphaNeg025 = [] + + + +Curvature_alphaNeg05 = [] +Curvature_alphaNeg055 = [] +Curvature_alphaNeg06 = [] +Curvature_alphaNeg065 = [] +Curvature_alphaNeg07 = [] +Curvature_alphaNeg075 = [] +Curvature_alphaNeg08 = [] +Curvature_alphaNeg085 = [] +Curvature_alphaNeg09 = [] +Curvature_alphaNeg095 = [] +Curvature_alphaNeg1 = [] + + + +Curvature_alpha3 = [] +Curvature_alphaNeg5 = [] + + + +for theta in X_Values: + print('Situation of Lemma1.4') + q12 = 0.0 + q1 = (1.0/6.0)*harmonicMean(mu1, beta, theta) + q2 = (1.0/6.0)*arithmeticMean(mu1, beta, theta) + b1 = prestrain_b1(rho1, beta, alpha,theta) + b2 = prestrain_b2(rho1, beta, alpha,theta) + b3 = 0.0 + q3 = GetMuGamma(beta,theta,gamma,mu1,rho1,InputFilePath ,OutputFilePath) + + # G, angle, Type, curvature = classifyMin_ana(alpha,beta,theta, q3, mu1, rho1) + # Y_Values.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-1.0,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg1.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-0.5,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg05 .append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-0.25,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg025.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(3.0,beta,theta, q3, mu1, rho1) + # Curvature_alpha3.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-0.75,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg075.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(0,beta,theta, q3, mu1, rho1) + # Curvature_alpha0.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-0.125,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg0125.append(curvature) + # G, angle, Type, curvature = classifyMin_ana(-5.0,beta,theta, q3, mu1, rho1) + # Curvature_alphaNeg5.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.5,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg05.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.55,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg055.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.6,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg06.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.65,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg065.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.7,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg07.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.75,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg075.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.8,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg08.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.85,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg085.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.9,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg09.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-0.95,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg095.append(curvature) + + G, angle, Type, curvature = classifyMin_ana(-1.0,beta,theta, q3, mu1, rho1) + Curvature_alphaNeg1.append(curvature) + +print("(Output) Values of Curvature: ", Y_Values) + + +# idx = find_nearestIdx(Y_Values, 0) +# print(' Idx of value closest to 0', idx) +# ValueClose = Y_Values[idx] +# print('GammaValue(Idx) with mu_gamma closest to q_3^*', ValueClose) + + + +# Find Indices where the difference between the next one is larger than epsilon... +# jump_idx = [] +# jump_xValues = [] +# jump_yValues = [] +# tmp = X_Values[0] +# for idx, x in enumerate(X_Values): +# print(idx, x) +# if idx > 0: +# if abs(Y_Values[idx]-Y_Values[idx-1]) > 1: +# print('jump candidate') +# jump_idx.append(idx) +# jump_xValues.append(x) +# jump_yValues.append(Y_Values[idx]) +# +# +# +# +# +# +# +# print("Jump Indices", jump_idx) +# print("Jump X-values:", jump_xValues) +# print("Jump Y-values:", jump_yValues) +# +# y_plotValues = [Y_Values[0]] +# x_plotValues = [X_Values[0]] +# # y_plotValues.extend(jump_yValues) +# for i in jump_idx: +# y_plotValues.extend([Y_Values[i-1], Y_Values[i]]) +# x_plotValues.extend([X_Values[i-1], X_Values[i]]) +# +# +# y_plotValues.append(Y_Values[-1]) +# # x_plotValues = [X_Values[0]] +# # x_plotValues.extend(jump_xValues) +# x_plotValues.append(X_Values[-1]) +# +# +# print("y_plotValues:", y_plotValues) +# print("x_plotValues:", x_plotValues) + + + + +# Y_Values[np.diff(y) >= 0.5] = np.nan + + +#get values bigger than jump position +# gamma = infty +# x_rest = X_Values[X_Values>x_plotValues[1]] +# Y_Values = np.array(Y_Values) #convert the np array +# y_rest = Y_Values[X_Values>x_plotValues[1]] +# +# +# # gamma = 0 +# x_rest = X_Values[X_Values>x_plotValues[3]] +# Y_Values = np.array(Y_Values) #convert the np array +# y_rest = Y_Values[X_Values>x_plotValues[3]] + +# gamma between +# Y_Values = np.array(Y_Values) #convert the np array +# X_Values = np.array(X_Values) #convert the np array +# +# x_one = X_Values[X_Values>x_plotValues[3]] +# # ax.scatter(X_Values, Y_Values) +# y_rest = Y_Values[X_Values>x_plotValues[3]] +# ax.plot(X_Values[X_Values>0.135], Y_Values[X_Values<0.135]) +# +# +# + + +# y_rest = Y_Values[np.nonzero(X_Values>x_plotValues[1]] +# print('X_Values:', X_Values) +# print('Y_Values:', Y_Values) +# print('x_rest:', x_rest) +# print('y_rest:', y_rest) +# print('np.nonzero(X_Values>x_plotValues[1]', np.nonzero(X_Values>x_plotValues[1]) ) + + + + +# --- Convert to numpy array +Y_Values = np.array(Y_Values) +X_Values = np.array(X_Values) + + +# Curvature_alphaNeg1 = np.array(Curvature_alphaNeg1) +# Curvature_alphaNeg05 = np.array(Curvature_alphaNeg05) +# Curvature_alphaNeg025 = np.array(Curvature_alphaNeg025) +# Curvature_alphaNeg075 = np.array(Curvature_alphaNeg075) +# Curvature_alpha3 = np.array(Curvature_alpha3) +# Curvature_alphaNeg0 = np.array(Curvature_alpha0) +# Curvature_alphaNeg0125 = np.array(Curvature_alphaNeg0125) +# Curvature_alphaNeg5 = np.array(Curvature_alphaNeg5) + +Curvature_alphaNeg05 = np.array(Curvature_alphaNeg05) +Curvature_alphaNeg055 = np.array(Curvature_alphaNeg055) +Curvature_alphaNeg06 = np.array(Curvature_alphaNeg06) +Curvature_alphaNeg065 = np.array(Curvature_alphaNeg065) +Curvature_alphaNeg07 = np.array(Curvature_alphaNeg07) +Curvature_alphaNeg075 = np.array(Curvature_alphaNeg075) +Curvature_alphaNeg08 = np.array(Curvature_alphaNeg08) +Curvature_alphaNeg085 = np.array(Curvature_alphaNeg085) +Curvature_alphaNeg09 = np.array(Curvature_alphaNeg09) +Curvature_alphaNeg095 = np.array(Curvature_alphaNeg095) +Curvature_alphaNeg1 = np.array(Curvature_alphaNeg1) + + + + +# ---------------- Create Plot ------------------- + +#--- change plot style: SEABORN +# plt.style.use("seaborn-paper") + + +#--- Adjust gobal matplotlib variables +# mpl.rcParams['pdf.fonttype'] = 42 +# mpl.rcParams['ps.fonttype'] = 42 +mpl.rcParams['text.usetex'] = True +mpl.rcParams["font.family"] = "serif" +mpl.rcParams["font.size"] = "9" + + +# plt.rc('font', family='serif', serif='Times') +# plt.rc('font', family='serif') +# # plt.rc('text', usetex=True) #also works... +# plt.rc('xtick', labelsize=8) +# plt.rc('ytick', labelsize=8) +# plt.rc('axes', labelsize=8) + + + + + +#---- Scale Figure apropriately to fit tex-File Width +# width = 452.9679 + +# width as measured in inkscape +width = 6.28 *0.5 +width = 6.28 +height = width / 1.618 + +#setup canvas first +fig = plt.figure() #main +# fig, ax = plt.subplots() +# fig, (ax, ax2) = plt.subplots(ncols=2) +# fig,axes = plt.subplots(nrows=1,ncols=2,figsize=(width,height)) # more than one plot + + +# fig.subplots_adjust(left=.15, bottom=.16, right=.99, top=.97) #TEST + + +# TEST +# mpl.rcParams['figure.figsize'] = (width+0.1,height+0.1) +# fig = plt.figure(figsize=(width+0.1,height+0.1)) + + +# mpl.rcParams['figure.figsize'] = (width,height) +# fig = plt.figure(figsize=(10,6)) # default is [6.4,4.8] 6.4 is the width, 4.8 is the height +# fig = plt.figure(figsize=(width,height)) # default is [6.4,4.8] 6.4 is the width, 4.8 is the height +# fig = plt.figure(figsize=set_size(width)) +# fig = plt.subplots(1, 1, figsize=set_size(width)) + +# --- To create a figure half the width of your document:# +# fig = plt.figure(figsize=set_size(width, fraction=0.5)) + + + +#--- You must select the correct size of the plot in advance +# fig.set_size_inches(3.54,3.54) + +# ax = plt.axes((0.15,0.18,0.8,0.8)) +ax = plt.axes((0.15,0.18,0.6,0.6)) +# ax = plt.axes((0.1,0.1,0.5,0.8)) +# ax = plt.axes((0.1,0.1,1,1)) +# ax = plt.axes() + +# ax.spines['right'].set_visible(False) +# ax.spines['left'].set_visible(False) +# ax.spines['bottom'].set_visible(False) +# ax.spines['top'].set_visible(False) +# ax.tick_params(axis='x',which='major',direction='out',length=10,width=5,color='red',pad=15,labelsize=15,labelcolor='green', +# labelrotation=15) +# ax.tick_params(axis='x',which='major', direction='out',pad=5,labelsize=10) +# ax.tick_params(axis='y',which='major', length=5, width=1, direction='out',pad=5,labelsize=10) +ax.tick_params(axis='x',which='major', direction='out',pad=3) +ax.tick_params(axis='y',which='major', length=3, width=1, direction='out',pad=3) +# ax.xaxis.set_major_locator(MultipleLocator(0.05)) +# ax.xaxis.set_minor_locator(MultipleLocator(0.025)) +ax.xaxis.set_major_locator(MultipleLocator(0.1)) +ax.xaxis.set_minor_locator(MultipleLocator(0.05)) + +#---- print data-types +print(ax.xaxis.get_major_locator()) +print(ax.xaxis.get_minor_locator()) +print(ax.xaxis.get_major_formatter()) +print(ax.xaxis.get_minor_formatter()) + +#---- Hide Ticks or Labels +# ax.yaxis.set_major_locator(plt.NullLocator()) +# ax.xaxis.set_major_formatter(plt.NullFormatter()) + +#---- Reducing or Increasing the Number of Ticks +# ax.xaxis.set_major_locator(plt.MaxNLocator(3)) +# ax.yaxis.set_major_locator(plt.MaxNLocator(3)) + + +#----- Fancy Tick Formats +# ax.yaxis.set_major_locator(plt.MultipleLocator(np.pi / 4)) +# ax.yaxis.set_minor_locator(plt.MultipleLocator(np.pi / 12)) +# ax.yaxis.set_major_formatter(plt.FuncFormatter(format_func)) + + + + + + + +# --- manually change ticks&labels: +# ax.set_xticks([0.2,1]) +# ax.set_xticklabels(['pos1','pos2']) + +# ax.set_yticks([0, np.pi/8, np.pi/4 ]) +# labels = ['$0$',r'$\pi/8$', r'$\pi/4$'] +# ax.set_yticklabels(labels) + +a=ax.yaxis.get_major_locator() +b=ax.yaxis.get_major_formatter() +c = ax.get_xticks() +d = ax.get_xticklabels() +print('xticks:',c) +print('xticklabels:',d) + +ax.grid(True,which='major',axis='both',alpha=0.3) + + + + + + +# plt.figure() + +# f,ax=plt.subplots(1) + +# plt.title(r''+ yName + '-Plot') +# plt.plot(X_Values, Y_Values,linewidth=2, '.k') +# plt.plot(X_Values, Y_Values,'.k',markersize=1) +# plt.plot(X_Values, Y_Values,'.',markersize=0.8) + +# plt.plot(X_Values, Y_Values) + +# ax.plot([[0],X_Values[-1]], [Y_Values[0],Y_Values[-1]]) + + + +# Gamma = '0' +# ax.plot([x_plotValues[0],x_plotValues[1]], [y_plotValues[0],y_plotValues[1]] , 'b') +# +# ax.plot([x_plotValues[1],x_plotValues[3]], [y_plotValues[2],y_plotValues[3]] , 'b') +# +# ax.plot(x_rest, y_rest, 'b') + + +# Gamma between + +# x jump values (gamma 0): [0.13606060606060608, 0.21090909090909093] + +# ax.plot([[0,jump_xValues[0]], [0, 0]] , 'b') +# ax.plot([jump_xValues[0],xmin], [y_plotValues[2],y_plotValues[2]] , 'b') + +# ax.plot([[0,0.13606060606060608], [0, 0]] , 'b') +# ax.plot([[0.13606060606060608,xmin], [(math.pi/2),(math.pi/2)]], 'b') + +# jump_xValues[0] + + + +# --- leave out jumps: +# ax.scatter(X_Values, Y_Values) + +ax.set_xlabel(r"volume fraction $\theta$") +ax.set_ylabel(r"Curvature $\kappa$") + + +if Jumps: + + # --- leave out jumps: + if gamma == 'infinity': + ax.plot(X_Values[X_Values>=jump_xValues[0]], Y_Values[X_Values>=jump_xValues[0]] , 'royalblue') + ax.plot(X_Values[X_Values<jump_xValues[0]], Y_Values[X_Values<jump_xValues[0]], 'royalblue') + + + + + + # Plot every other line.. not the jumps... + + if gamma == '0': + tmp = 1 + for idx, x in enumerate(x_plotValues): + if idx > 0 and tmp == 1: + # plt.plot([x_plotValues[idx-1],x_plotValues[idx]] ,[y_plotValues[idx-1],y_plotValues[idx]] ) + ax.plot([x_plotValues[idx-1],x_plotValues[idx]] ,[y_plotValues[idx-1],y_plotValues[idx]], 'royalblue', zorder=2) + tmp = 0 + else: + tmp = 1 + + # plt.plot([x_plotValues[0],x_plotValues[1]] ,[y_plotValues[0],y_plotValues[1]] ) + # plt.plot([x_plotValues[2],x_plotValues[3]] ,[y_plotValues[2],y_plotValues[3]] ) + # plt.plot([x_plotValues[4],x_plotValues[5]] ,[y_plotValues[4],y_plotValues[5]] ) + # plt.plot([x_plotValues[6],x_plotValues[7]] ,[y_plotValues[6],y_plotValues[7]] ) + + + for x in jump_xValues: + plt.axvline(x,ymin=0, ymax= 1, color = 'orange',alpha=0.5, linestyle = 'dashed', linewidth=1, zorder=1) + # plt.axvline(x,ymin=0, ymax= 1, color = 'orange',alpha=0.5, linestyle = 'dashed', label=r'$\theta_*$') + + # plt.axvline(x_plotValues[1],ymin=0, ymax= 1, color = 'g',alpha=0.5, linestyle = 'dashed') + + # plt.axhline(y = 1.90476, color = 'b', linestyle = ':', label='$q_1$') + # plt.axhline(y = 2.08333, color = 'r', linestyle = 'dashed', label='$q_2$') + # plt.legend() + + + # -- SETUP LEGEND + # ax.legend(prop={'size': 11}) + # ax.legend() + + # ------------------ SAVE FIGURE + # tikzplotlib.save("TesTout.tex") + # plt.close() + # mpl.rcParams.update(mpl.rcParamsDefault) + + # plt.savefig("graph.pdf", + # #This is simple recomendation for publication plots + # dpi=1000, + # # Plot will be occupy a maximum of available space + # bbox_inches='tight', + # ) + # plt.savefig("graph.pdf") + + + + # ---- ADD additional scatter: + # ax.scatter(X_Values,Y_Values,s=1,c='black',zorder=4) + + # Find transition point + lastIdx = len(Y_Values)-1 + + for idx, y in enumerate(Y_Values): + if idx != lastIdx: + if abs(y-0) < 0.01 and abs(Y_Values[idx+1] - 0) > 0.05: + transition_point1 = X_Values[idx+1] + print('transition point1:', transition_point1 ) + if abs(y-0.5*np.pi) < 0.01 and abs(Y_Values[idx+1] -0.5*np.pi)>0.01: + transition_point2 = X_Values[idx] + print('transition point2:', transition_point2 ) + if abs(y-0) > 0.01 and abs(Y_Values[idx+1] - 0) < 0.01: + transition_point3 = X_Values[idx+1] + print('transition point3:', transition_point3 ) + + # Add transition Points: + if gamma == '0': + ax.scatter([transition_point1, transition_point2],[np.pi/2,np.pi/2],s=6, marker='o', cmap=None, norm=None, facecolor = 'black', + edgecolor = 'black', vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + + ax.text(transition_point1-0.02 , np.pi/2-0.02, r"$1$", size=6, bbox=dict(boxstyle="circle",facecolor='white', alpha=1.0, pad=0.1, linewidth=0.5) + ) + + ax.text(transition_point2+0.012 , np.pi/2-0.02, r"$2$", size=6, bbox=dict(boxstyle="circle",facecolor='white', alpha=1.0, pad=0.1, linewidth=0.5) + ) + else: + ax.scatter([transition_point1, transition_point2, transition_point3 ],[np.pi/2,np.pi/2,0 ],s=6, marker='o', cmap=None, norm=None, facecolor = 'black', + edgecolor = 'black', vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + + ax.text(transition_point1-0.02 , np.pi/2-0.02, r"$1$", size=6, bbox=dict(boxstyle="circle",facecolor='white', alpha=1.0, pad=0.1, linewidth=0.5) + ) + + ax.text(transition_point2 +0.011 , np.pi/2-0.02, r"$2$", size=6, bbox=dict(boxstyle="circle",facecolor='white', alpha=1.0, pad=0.1, linewidth=0.5) + ) + + ax.text(transition_point3 +0.009 , 0+0.08, r"$3$", size=6, bbox=dict(boxstyle="circle",facecolor='white', alpha=1.0, pad=0.1, linewidth=0.5) + ) + +else: + # ax.scatter(X_Values,Y_Values,s=1, marker='o', cmap=None, norm=None, facecolor = 'blue', + # # edgecolor = 'none', vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l1 = ax.scatter(X_Values,Curvature_alphaNeg5,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=3) + # l2 = ax.scatter(X_Values,Curvature_alphaNeg1,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3, label=r"$\theta_\rho = -1.0$") + # l3 = ax.scatter(X_Values,Curvature_alphaNeg075,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l4 = ax.scatter(X_Values,Curvature_alphaNeg05,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l5 = ax.scatter(X_Values,Curvature_alphaNeg025,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l6 = ax.scatter(X_Values,Curvature_alphaNeg0125,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l7 = ax.scatter(X_Values,Curvature_alpha0,s=1, marker='o', edgecolor = 'black',cmap=None, norm=None, vmin=None, vmax=None, alpha=0.75, linewidths=None, zorder=4) + # l8 = ax.scatter(X_Values,Curvature_alpha3,s=1, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=4) + # # # l4 = ax.scatter(X_Values,Curvature_alpha3,s=1, marker='o', markerfacecolor='red',markeredgecolor='black',markeredgewidth=2, cmap=None, norm=None, vmin=None, vmax=None, alpha=0.5, linewidths=None, zorder=3) + + # l1 = ax.scatter(X_Values,Curvature_alphaNeg5,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=3) + # l2 = ax.scatter(X_Values,Curvature_alphaNeg1,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3, label=r"$\theta_\rho = -1.0$") + # l3 = ax.scatter(X_Values,Curvature_alphaNeg075,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l4 = ax.scatter(X_Values,Curvature_alphaNeg05,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l5 = ax.scatter(X_Values,Curvature_alphaNeg025,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l6 = ax.scatter(X_Values,Curvature_alphaNeg0125,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l7 = ax.scatter(X_Values,Curvature_alpha0,s=0.25, color = 'black',cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=4) + # l8 = ax.scatter(X_Values,Curvature_alpha3,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=4) + + # l1 = ax.scatter(X_Values,Curvature_alphaNeg5,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=3) + # l2 = ax.scatter(X_Values,Curvature_alphaNeg1,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3, label=r"$\theta_\rho = -1.0$") + # l3 = ax.scatter(X_Values,Curvature_alphaNeg075,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l4 = ax.scatter(X_Values,Curvature_alphaNeg05,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l5 = ax.scatter(X_Values,Curvature_alphaNeg025,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l6 = ax.scatter(X_Values,Curvature_alphaNeg0125,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, zorder=3) + # l7 = ax.scatter(X_Values,Curvature_alpha0,s=0.25, color = 'black',cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=4) + # # l8 = ax.scatter(X_Values,Curvature_alpha3,s=0.25, marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=1.0, linewidths=None, zorder=4) + # + + + l1 = ax.plot(X_Values,Curvature_alphaNeg05, color='blue', linewidth=1.5, zorder=3, label=r"$\theta_\rho=-0.5$") + l2 = ax.plot(X_Values,Curvature_alphaNeg055, linewidth=1.5, linestyle = '--', zorder=3,label=r"$\theta_\rho=-0.55$") + l3 = ax.plot(X_Values,Curvature_alphaNeg06,color='orangered', linewidth=1.5 ,linestyle = '--' ,zorder=3, label=r"$\theta_\rho=-0.6$") + l4 = ax.plot(X_Values,Curvature_alphaNeg065, linewidth=1.5 ,linestyle = '--' ,zorder=3, label=r"$\theta_\rho=-0.65$") + l5 = ax.plot(X_Values,Curvature_alphaNeg07,color='orange', linewidth=1.5 ,linestyle = '--' ,zorder=3, label=r"$\theta_\rho=-0.7$") + l6 = ax.plot(X_Values,Curvature_alphaNeg075, linewidth=1.5,linestyle = '--' ,zorder=3, label=r"$\theta_\rho=-0.75$") + l7 = ax.plot(X_Values,Curvature_alphaNeg08, linewidth=1.5,linestyle = '--' , zorder=3, label=r"$\theta_\rho=-0.8$") + l8 = ax.plot(X_Values,Curvature_alphaNeg085, linewidth=1.5,linestyle = '--' , zorder=3, label=r"$\theta_\rho=-0.85$") + l9 = ax.plot(X_Values,Curvature_alphaNeg09, color='teal',linestyle = '--', linewidth=1.5 , zorder=3, label=r"$\theta_\rho=-0.9$") + l10 = ax.plot(X_Values,Curvature_alphaNeg095, linewidth=1.5,linestyle = '--' , zorder=3, label=r"$\theta_\rho=-0.95$") + l11 = ax.plot(X_Values,Curvature_alphaNeg1, color='red', linewidth=1.5 ,zorder=1, label=r"$\theta_\rho=-1.0$") + + ax.legend(handles=[l1[0],l2[0],l3[0],l4[0], l5[0], l6[0], l7[0], l8[0], l9[0], l10[0], l11[0]], + # labels= [r"$\theta_\rho = -1.0$", r"$\theta_\rho = - \frac{7}{8}$", r"$\theta_\rho = -\frac{3}{4}$" , r"$\theta_\rho = - \frac{5}{8}$", r"$\theta_\rho = - \frac{1}{2} $" , r"$\theta_\rho = - \frac{1}{4}$", r"$\theta_\rho = - \frac{1}{8}$" , r"$\theta_\rho = 0$"], + loc='upper left', + bbox_to_anchor=(1,1)) + + # line_labels = [r"$\theta_\rho = -1.0$", r"$\theta_\rho = -0.5$", r"$\theta_\rho = -0.25$", r"$\theta_\rho = 3.0$"] + # ax.set_yticks([0, np.pi/8, np.pi/4, 3*np.pi/8 , np.pi/2, 5*np.pi/8 ]) + # labels = ['$0$',r'$\pi/8$', r'$\pi/4$' ,r'$3\pi/8$' , r'$\pi/2$',r'$5\pi/8$'] + # ax.set_yticklabels(labels) + # ax.set_yticks([1.570786327, np.pi/2 ]) + # labels = [r'$\pi/2-0.0005 $' , r'$\pi/2$'] + # ax.set_yticklabels(labels) + + # lgnd = ax.legend(handles=[l2,l3,l4, l5, l6, l7], + # labels= [ r"$\theta_\rho = -1.0$",r"$\theta_\rho = -0.75$", r"$\theta_\rho = -0.5$", r"$\theta_\rho = -0.25$", r"$\theta_\rho = -0.125$", r"$\theta_\rho = 0$" ], + # loc='upper left', + # # fontsize=10, + # # scatterpoints=1, + # bbox_to_anchor=(1,1)) + + # lgnd = ax.legend(handles=[l1,l2,l3,l4, l5, l6, l7, l8], + # labels= [r"$\theta_\rho = -5.0$", r"$\theta_\rho = -1.0$",r"$\theta_\rho = -0.75$", r"$\theta_\rho = -0.5$", r"$\theta_\rho = -0.25$", r"$\theta_\rho = -0.125$", r"$\theta_\rho = 0$", r"$\theta_\rho = 3.0$" ], + # loc='upper left', + # # fontsize=10, + # # scatterpoints=1, + # bbox_to_anchor=(1,1)) + + # lgnd.legendHandles[0]._sizes = [10] + # lgnd.legendHandles[1]._sizes = [10] + # lgnd.legendHandles[2]._sizes = [10] + # lgnd.legendHandles[3]._sizes = [10] + # lgnd.legendHandles[4]._sizes = [10] + # lgnd.legendHandles[5]._sizes = [10] + # lgnd.legendHandles[6]._sizes = [10] + # lgnd.legendHandles[7]._sizes = [10] + # lgnd.legendHandles[8]._sizes = [10] + # lgnd.legendHandles[9]._sizes = [10] + # lgnd.legendHandles[10]._sizes = [10] + + + # fig.legend([l1, l2, l3, l4], # The line objects + # labels=line_labels, # The labels for each line + # # loc="upper center", # Position of legend + # loc='upperleft', bbox_to_anchor=(1,1), + # borderaxespad=0.15 # Small spacing around legend box + # # title="Legend Title" # Title for the legend + # ) + + + +fig.set_size_inches(width, height) +fig.savefig('Plot-Curvature-Theta.pdf') + + + + +# tikz_save('someplot.tex', figureheight='5cm', figurewidth='9cm') + +# tikz_save('fig.tikz', +# figureheight = '\\figureheight', +# figurewidth = '\\figurewidth') + +# ---------------------------------------- + + +plt.show() +# #--------------------------------------------------------------- diff --git a/src/Plotq12.py b/src/Plotq12.py index 665bfaaf..1fee96ef 100644 --- a/src/Plotq12.py +++ b/src/Plotq12.py @@ -39,11 +39,16 @@ print("OutputFilepath: ", OutputFilePath) print("Path: ", path) #--------------------------------------------------------------- -# Lambda_Values = np.linspace(0.0, 10.0, num=20) -Lambda_Values = np.linspace(3.0, 5.0, num=20) +Lambda_Values = np.linspace(0.0, 10.0, num=11) +Lambda_Values = np.linspace(0.0, 5.0, num=6) +# Lambda_Values = np.linspace(3.0, 5.0, num=20) print(Lambda_Values) q12 = [] +# Lambda_Values = [0., 1.11111111, 2.22222222, 3.33333333, 4.44444444, 5.55555556, +# 6.66666667, 7.77777778, 8.88888889] +# q12 = [0.0, 0.063676,0.094143, 0.299630, 0.34867, 0.491484, 0.586567, 0.671976, 0.757724 ] + # --- Options RUN = True -- GitLab