Viz!( ) Color mapping on many grids

raman_kumar
Wed, 06 Aug 2025 22:43:43 +0000
Visualization

I am using Meshes.jl to create a polar coordinate grid. I have different grids with different r, ϕ and nrho values. I see that there color mapping is done for each grid individually. There is repetition of colors for every grid( see blue color repetition at grid boundaries).

Is there any way to have uniform color mapping of nrho values so that they don’t rescale/ remap for each grid separately?

using GLMakie, Meshes, CoordRefSystems

fig = Figure()
ax::LScene = LScene(fig[1, 1])

r = Float32[1.6, 1.754088, 1.9230156, 2.1082115, 2.311243, 2.5338273, 2.7778475, 3.0453684, 3.3386526, 3.6601818, 4.012676, 4.3991165, 4.8227735, 5.287231, 5.7964177, 6.354642, 6.9666257, 7.637547, 8.373081]
ϕ = Float32[0.0, 0.3926991, 0.7853982, 1.1780972, 1.5707964, 1.9634954, 2.3561945, 2.7488935, 3.1415927, 3.5342917, 3.9269907, 4.3196898, 4.712389, 5.105088, 5.497787, 5.8904862, 6.2831855]
nrho = Float32[-0.31724057, -0.052486915, -0.12816517, -0.20334071, -0.2778654, -0.35170522, -0.42483962, -0.49720955, -0.56870365, -0.6392075, -0.70863956, -0.7768686, -0.8437465, -0.90921444, -0.9732183, -1.0356905, -1.0966233, -1.1560383, -1.4873642, -0.016212648, 0.24854787, 0.17288895, 0.09773493, 0.023207534, -0.050663345, -0.12382651, -0.19621648, -0.2677336, -0.3382721, -0.40774897, -0.4760231, -0.5429496, -0.6084543, -0.67248255, -0.7349909, -0.79595023, -0.8553501, -1.1866524, -0.01618919, 0.24859601, 0.17298254, 0.09784504, 0.023290517, -0.050631933, -0.12385172, -0.19630124, -0.26787174, -0.3384751, -0.40803257, -0.47639632, -0.5434151, -0.6089835, -0.67304677, -0.7355963, -0.79659647, -0.855976, -1.1872369, -0.016119579, 0.24868461, 0.1731, 0.0979524, 0.023347236, -0.050632514, -0.123908386, -0.19641748, -0.26804233, -0.33870253, -0.4083185, -0.4767544, -0.54384625, -0.60946345, -0.67355675, -0.7361161, -0.79711014, -0.8564719, -1.1877177, -0.016039796, 0.24877064, 0.17319287, 0.09802516, 0.023367107, -0.05067306, -0.12399837, -0.1965499, -0.26822025, -0.3389213, -0.40857163, -0.477055, -0.5441957, -0.60983944, -0.6739359, -0.7364814, -0.7974488, -0.85677475, -1.1880006, -0.015974747, 0.24884199, 0.17326541, 0.098068945, 0.023365192, -0.050717484, -0.124081686, -0.19667043, -0.26837528, -0.33909735, -0.40875122, -0.4772333, -0.54438126, -0.61003286, -0.67411, -0.7366013, -0.7974935, -0.85675013, -1.1879463, -0.015937982, 0.2488773, 0.17329307, 0.09808022, 0.023352193, -0.05076357, -0.12415751, -0.19676161, -0.26847225, -0.33918518, -0.40880674, -0.47724319, -0.5443469, -0.60995704, -0.6739885, -0.7364059, -0.79719836, -0.8563741, -1.1875386, -0.0159451, 0.24886076, 0.17326361, 0.098055765, 0.023335265, -0.050792694, -0.124204986, -0.19680603, -0.26848492, -0.33914402, -0.4087054, -0.47708517, -0.5441168, -0.6096332, -0.67356217, -0.73587584, -0.79658276, -0.8557212, -1.1868867, -0.015978238, 0.24881072, 0.17318752, 0.09798711, 0.023289585, -0.050835907, -0.12423631, -0.19679418, -0.26841328, -0.3389942, -0.40846837, -0.47675636, -0.5436916, -0.6091051, -0.672921, -0.73512805, -0.7957579, -0.8548935, -1.1860899, -0.016022554, 0.24874587, 0.17308424, 0.09787475, 0.023208762, -0.050870974, -0.12422053, -0.19671693, -0.26826912, -0.33876702, -0.4081443, -0.4763247, -0.5431461, -0.6084496, -0.67217904, -0.73434865, -0.79496574, -0.8541017, -1.1853075, -0.01608127, 0.24866322, 0.17295717, 0.09773398, 0.023111822, -0.05088049, -0.124148555, -0.1965852, -0.2680822, -0.33851177, -0.407807, -0.4758926, -0.5426088, -0.6078293, -0.6715456, -0.7337595, -0.7943887, -0.853487, -1.1846722, -0.016113533, 0.2486119, 0.17286843, 0.09762669, 0.023024876, -0.05090127, -0.124078035, -0.19643855, -0.26789165, -0.33828145, -0.4075171, -0.475529, -0.5421865, -0.6073877, -0.67112046, -0.7333457, -0.7939597, -0.8530723, -1.1842862, -0.016112432, 0.2486063, 0.17284504, 0.097582154, 0.022976708, -0.05090785, -0.12401122, -0.19630958, -0.26773068, -0.33810145, -0.40730652, -0.4752878, -0.54193985, -0.60715836, -0.67089456, -0.733095, -0.7937294, -0.85294145, -1.1842201, -0.016119981, 0.24860086, 0.17283821, 0.09756933, 0.022969048, -0.050887216, -0.12394406, -0.19620948, -0.26762083, -0.33799043, -0.40719938, -0.47518945, -0.5418569, -0.6070993, -0.67086864, -0.7331145, -0.79382914, -0.8531326, -1.1844504, -0.016138786, 0.24858795, 0.17283706, 0.09758046, 0.022998903, -0.050831076, -0.123874195, -0.19614807, -0.26757064, -0.337959, -0.40720236, -0.47523105, -0.541935, -0.60721713, -0.67105, -0.7333749, -0.7941538, -0.8535356, -1.184908, -0.016167857, 0.24856697, 0.17284003, 0.097611725, 0.023053156, -0.050766855, -0.12382803, -0.19613177, -0.26757848, -0.33800185, -0.40730113, -0.47539613, -0.5421628, -0.6075128, -0.6714223, -0.7338183, -0.79465306, -0.85407406, -1.1854649, -0.31721595, -0.0524757, -0.1281875, -0.20339856, -0.2779463, -0.3517717, -0.42484894, -0.49716523, -0.5686264, -0.6390701, -0.70840216, -0.7765373, -0.8433396, -0.90873206, -0.97268105, -1.0351101, -1.0959784, -1.1554049, -1.4867876]

g = RectilinearGrid{𝔼,typeof(Polar(0,0))}(r, ϕ)
viz!(g, color = nrho,)

gives this plot

while

using GLMakie, Meshes, CoordRefSystems

fig = Figure()
ax::LScene = LScene(fig[1, 1])

r1 = Float32[1.6, 1.754088, 1.9230156, 2.1082115, 2.311243, 2.5338273, 2.7778475, 3.0453684, 3.3386526, 3.6601818, 4.012676, 4.3991165, 4.8227735, 5.287231, 5.7964177, 6.354642, 6.9666257, 7.637547, 8.373081]
ϕ1 = Float32[0.0, 0.3926991, 0.7853982, 1.1780972, 1.5707964, 1.9634954, 2.3561945, 2.7488935, 3.1415927, 3.5342917, 3.9269907, 4.3196898, 4.712389, 5.105088, 5.497787, 5.8904862, 6.2831855]
nrho1 = Float32[-0.31724057, -0.052486915, -0.12816517, -0.20334071, -0.2778654, -0.35170522, -0.42483962, -0.49720955, -0.56870365, -0.6392075, -0.70863956, -0.7768686, -0.8437465, -0.90921444, -0.9732183, -1.0356905, -1.0966233, -1.1560383, -1.4873642, -0.016212648, 0.24854787, 0.17288895, 0.09773493, 0.023207534, -0.050663345, -0.12382651, -0.19621648, -0.2677336, -0.3382721, -0.40774897, -0.4760231, -0.5429496, -0.6084543, -0.67248255, -0.7349909, -0.79595023, -0.8553501, -1.1866524, -0.01618919, 0.24859601, 0.17298254, 0.09784504, 0.023290517, -0.050631933, -0.12385172, -0.19630124, -0.26787174, -0.3384751, -0.40803257, -0.47639632, -0.5434151, -0.6089835, -0.67304677, -0.7355963, -0.79659647, -0.855976, -1.1872369, -0.016119579, 0.24868461, 0.1731, 0.0979524, 0.023347236, -0.050632514, -0.123908386, -0.19641748, -0.26804233, -0.33870253, -0.4083185, -0.4767544, -0.54384625, -0.60946345, -0.67355675, -0.7361161, -0.79711014, -0.8564719, -1.1877177, -0.016039796, 0.24877064, 0.17319287, 0.09802516, 0.023367107, -0.05067306, -0.12399837, -0.1965499, -0.26822025, -0.3389213, -0.40857163, -0.477055, -0.5441957, -0.60983944, -0.6739359, -0.7364814, -0.7974488, -0.85677475, -1.1880006, -0.015974747, 0.24884199, 0.17326541, 0.098068945, 0.023365192, -0.050717484, -0.124081686, -0.19667043, -0.26837528, -0.33909735, -0.40875122, -0.4772333, -0.54438126, -0.61003286, -0.67411, -0.7366013, -0.7974935, -0.85675013, -1.1879463, -0.015937982, 0.2488773, 0.17329307, 0.09808022, 0.023352193, -0.05076357, -0.12415751, -0.19676161, -0.26847225, -0.33918518, -0.40880674, -0.47724319, -0.5443469, -0.60995704, -0.6739885, -0.7364059, -0.79719836, -0.8563741, -1.1875386, -0.0159451, 0.24886076, 0.17326361, 0.098055765, 0.023335265, -0.050792694, -0.124204986, -0.19680603, -0.26848492, -0.33914402, -0.4087054, -0.47708517, -0.5441168, -0.6096332, -0.67356217, -0.73587584, -0.79658276, -0.8557212, -1.1868867, -0.015978238, 0.24881072, 0.17318752, 0.09798711, 0.023289585, -0.050835907, -0.12423631, -0.19679418, -0.26841328, -0.3389942, -0.40846837, -0.47675636, -0.5436916, -0.6091051, -0.672921, -0.73512805, -0.7957579, -0.8548935, -1.1860899, -0.016022554, 0.24874587, 0.17308424, 0.09787475, 0.023208762, -0.050870974, -0.12422053, -0.19671693, -0.26826912, -0.33876702, -0.4081443, -0.4763247, -0.5431461, -0.6084496, -0.67217904, -0.73434865, -0.79496574, -0.8541017, -1.1853075, -0.01608127, 0.24866322, 0.17295717, 0.09773398, 0.023111822, -0.05088049, -0.124148555, -0.1965852, -0.2680822, -0.33851177, -0.407807, -0.4758926, -0.5426088, -0.6078293, -0.6715456, -0.7337595, -0.7943887, -0.853487, -1.1846722, -0.016113533, 0.2486119, 0.17286843, 0.09762669, 0.023024876, -0.05090127, -0.124078035, -0.19643855, -0.26789165, -0.33828145, -0.4075171, -0.475529, -0.5421865, -0.6073877, -0.67112046, -0.7333457, -0.7939597, -0.8530723, -1.1842862, -0.016112432, 0.2486063, 0.17284504, 0.097582154, 0.022976708, -0.05090785, -0.12401122, -0.19630958, -0.26773068, -0.33810145, -0.40730652, -0.4752878, -0.54193985, -0.60715836, -0.67089456, -0.733095, -0.7937294, -0.85294145, -1.1842201, -0.016119981, 0.24860086, 0.17283821, 0.09756933, 0.022969048, -0.050887216, -0.12394406, -0.19620948, -0.26762083, -0.33799043, -0.40719938, -0.47518945, -0.5418569, -0.6070993, -0.67086864, -0.7331145, -0.79382914, -0.8531326, -1.1844504, -0.016138786, 0.24858795, 0.17283706, 0.09758046, 0.022998903, -0.050831076, -0.123874195, -0.19614807, -0.26757064, -0.337959, -0.40720236, -0.47523105, -0.541935, -0.60721713, -0.67105, -0.7333749, -0.7941538, -0.8535356, -1.184908, -0.016167857, 0.24856697, 0.17284003, 0.097611725, 0.023053156, -0.050766855, -0.12382803, -0.19613177, -0.26757848, -0.33800185, -0.40730113, -0.47539613, -0.5421628, -0.6075128, -0.6714223, -0.7338183, -0.79465306, -0.85407406, -1.1854649, -0.31721595, -0.0524757, -0.1281875, -0.20339856, -0.2779463, -0.3517717, -0.42484894, -0.49716523, -0.5686264, -0.6390701, -0.70840216, -0.7765373, -0.8433396, -0.90873206, -0.97268105, -1.0351101, -1.0959784, -1.1554049, -1.4867876]

r2 = Float32[8.373081, 8.767, 9.179451, 9.611306, 10.063478, 10.536923, 11.032641, 11.5516815, 12.09514, 12.664167, 13.259964, 13.88379, 14.536964, 15.220869, 15.936948, 16.686714, 17.471756, 18.29373, 19.154373]
ϕ2 = Float32[0.0, 0.19634955, 0.3926991, 0.5890486, 0.7853982, 0.9817477, 1.1780972, 1.3744467, 1.5707964, 1.7671459, 1.9634954, 2.1598449, 2.3561945, 2.552544, 2.7488935, 2.9452431, 3.1415927]
nrho2 = Float32[-1.5302302, -1.2430862, -1.2710298, -1.2984844, -1.3255705, -1.3523126, -1.3787328, -1.4048381, -1.4306346, -1.4561317, -1.4813477, -1.5062978, -1.5309937, -1.5554534, -1.5796951, -1.6037352, -1.6275831, -1.651246, -1.9642208, -1.2292877, -0.94213414, -0.97006226, -0.99750936, -1.024592, -1.0513339, -1.0777539, -1.1038567, -1.1296496, -1.1551427, -1.1803533, -1.2052989, -1.229993, -1.2544485, -1.2786835, -1.3027152, -1.3265531, -1.3502091, -1.6631826, -1.2295104, -0.9423056, -0.97018147, -0.9976245, -1.0247027, -1.0514458, -1.0778627, -1.1039598, -1.1297437, -1.1552274, -1.1804278, -1.2053618, -1.2300426, -1.2544833, -1.2787033, -1.3027208, -1.3265455, -1.3501859, -1.6631498, -1.2297837, -0.9424887, -0.97028905, -0.99774885, -1.0248264, -1.0515702, -1.0779779, -1.1040657, -1.1298393, -1.1553115, -1.1804972, -1.2054131, -1.230076, -1.2544981, -1.2786953, -1.3026904, -1.3265018, -1.3501388, -1.6631025, -1.2300338, -0.9426703, -0.970408, -0.99787587, -1.0249529, -1.051693, -1.0780896, -1.1041659, -1.1299251, -1.1553814, -1.1805501, -1.2054459, -1.230085, -1.2544883, -1.2786727, -1.3026574, -1.3264638, -1.3501062, -1.6630759, -1.2302504, -0.9428565, -0.9705467, -0.99800056, -1.0250745, -1.0518034, -1.0781875, -1.1042483, -1.1299931, -1.1554316, -1.1805755, -1.2054521, -1.2300775, -1.2544702, -1.2786523, -1.3026417, -1.3264537, -1.3500988, -1.6630696, -1.230487, -0.9430424, -0.9706727, -0.9981131, -1.0251731, -1.0518904, -1.07826, -1.1043, -1.130021, -1.1554413, -1.1805717, -1.2054362, -1.2300566, -1.2544467, -1.2786264, -1.3026173, -1.3264319, -1.3500787, -1.6630505, -1.2307289, -0.94321704, -0.9707785, -0.9981998, -1.0252321, -1.0519253, -1.0782716, -1.1043013, -1.1300075, -1.1554143, -1.1805367, -1.2053928, -1.2300025, -1.2543896, -1.2785712, -1.3025622, -1.3263726, -1.3500102, -1.6629754, -1.2308978, -0.9433376, -0.97082376, -0.99821204, -1.0252286, -1.0519075, -1.078241, -1.1042597, -1.1299567, -1.1553485, -1.1804535, -1.2053007, -1.229908, -1.2542944, -1.2784703, -1.3024465, -1.3262364, -1.349854, -1.6628096, -1.2309226, -0.9433462, -0.9708051, -0.99817616, -1.0251794, -1.0518519, -1.0781764, -1.104176, -1.1298523, -1.1552281, -1.180325, -1.2051686, -1.2297736, -1.2541517, -1.2783087, -1.3022566, -1.3260175, -1.3496172, -1.6625683, -1.2308303, -0.9432718, -0.97074825, -0.99810576, -1.0250888, -1.051741, -1.0780487, -1.1040369, -1.1297015, -1.1550686, -1.1801606, -1.2050009, -1.2295979, -1.2539594, -1.27809, -1.3020074, -1.3257499, -1.3493508, -1.6623058, -1.230619, -0.94310707, -0.97061515, -0.9979535, -1.0249267, -1.051567, -1.0778672, -1.1038481, -1.1295089, -1.1548731, -1.1799624, -1.2047957, -1.2293824, -1.2537253, -1.2778283, -1.3017253, -1.3254714, -1.3490846, -1.662044, -1.2302792, -0.94282234, -0.97038525, -0.99772316, -1.0246956, -1.051333, -1.0776348, -1.1036166, -1.12928, -1.1546483, -1.1797354, -1.2045598, -1.2291335, -1.2534559, -1.2775348, -1.3014266, -1.3251866, -1.3488015, -1.6617554, -1.2298802, -0.94246733, -0.97007674, -0.9974222, -1.0244077, -1.0510558, -1.0773692, -1.1033565, -1.1290253, -1.1543999, -1.1794869, -1.2043062, -1.2288665, -1.2531713, -1.277242, -1.3011417, -1.324909, -1.3485141, -1.6614583, -1.2294478, -0.9420719, -0.9697199, -0.9970823, -1.0240955, -1.0507638, -1.0770891, -1.1030835, -1.1287644, -1.1541493, -1.1792452, -1.2040672, -1.2286229, -1.2529212, -1.2769965, -1.3009061, -1.3246689, -1.3482575, -1.6611923, -1.2290102, -0.94166076, -0.9693505, -0.9967492, -1.0237975, -1.0504868, -1.0768275, -1.1028378, -1.1285368, -1.1539384, -1.1790484, -1.2038774, -1.2284317, -1.2527249, -1.2768028, -1.3007146, -1.3244606, -1.348024, -1.6609466, -1.5298223, -1.242485, -1.2701993, -1.2976215, -1.3246878, -1.351387, -1.3777373, -1.4037578, -1.4294665, -1.4548775, -1.4799947, -1.5048273, -1.5293791, -1.5536675, -1.5777454, -1.6016566, -1.625391, -1.648939, -1.9618547]

r3 = Float32[19.154373, 20.055508, 20.999037, 21.986954, 23.021349, 24.104408, 25.23842, 26.425783, 27.669008, 28.97072, 30.333672, 31.760746, 33.25496, 34.819466, 36.457577, 38.172756, 39.968624, 41.848984, 43.817806]
ϕ3 = Float32[0.0, 0.19634955, 0.3926991, 0.5890486, 0.7853982, 0.9817477, 1.1780972, 1.3744467, 1.5707964, 1.7671459, 1.9634954, 2.1598449, 2.3561945, 2.552544, 2.7488935, 2.9452431, 3.1415927]
nrho3 = Float32[-1.9876237, -1.698055, -1.7212055, -1.7441865, -1.7670102, -1.789669, -1.8121414, -1.8344415, -1.8565922, -1.8786324, -1.9005796, -1.9223924, -1.9440464, -1.965555, -1.9869329, -2.0081708, -2.0292711, -2.0502279, -2.3618202, -1.6865848, -1.3970188, -1.4201688, -1.4431398, -1.4659455, -1.4885932, -1.5110879, -1.5334378, -1.5556457, -1.5777233, -1.5996758, -1.6214858, -1.6431369, -1.6646328, -1.6859791, -1.7071675, -1.7281811, -1.7490175, -2.0605469, -1.6865363, -1.3969635, -1.420112, -1.4430991, -1.4659193, -1.4885862, -1.5111197, -1.5335238, -1.5557963, -1.5779219, -1.5998825, -1.6216722, -1.6432807, -1.6647013, -1.6859363, -1.7070006, -1.7278603, -1.7484928, -2.05991, -1.6864842, -1.3969123, -1.4200729, -1.4430897, -1.4659497, -1.4886553, -1.511213, -1.5336273, -1.5559055, -1.5780268, -1.5999566, -1.6216753, -1.6431717, -1.6644571, -1.6855403, -1.7064532, -1.7271456, -1.7475816, -2.0588996, -1.6864731, -1.396913, -1.4200925, -1.4431194, -1.4659892, -1.4887047, -1.5112668, -1.5336747, -1.5559242, -1.5779887, -1.5998315, -1.6214343, -1.6427884, -1.6639129, -1.6848117, -1.7055309, -1.7260314, -1.7463087, -2.0575676, -1.6864759, -1.3969191, -1.4201056, -1.4431372, -1.4660041, -1.4887079, -1.5112463, -1.5336101, -1.5557933, -1.5777699, -1.5994997, -1.6209681, -1.6421597, -1.6630862, -1.6837851, -1.7043304, -1.7246909, -1.7448587, -2.0560663, -1.6864593, -1.3969015, -1.4200816, -1.4431016, -1.4659489, -1.4886186, -1.511111, -1.5334122, -1.5555108, -1.5773832, -1.5989865, -1.620294, -1.6412952, -1.6620293, -1.6825749, -1.7030005, -1.7232466, -1.743293, -2.054431, -1.686373, -1.396808, -1.4199686, -1.442966, -1.4657916, -1.4884269, -1.5108685, -1.533106, -1.5551195, -1.5768735, -1.5983235, -1.6194537, -1.6402836, -1.6608694, -1.6812742, -1.7015401, -1.7216084, -1.741524, -2.0526183, -1.6861893, -1.3966188, -1.4197664, -1.4427475, -1.4655571, -1.4881681, -1.5105665, -1.5327417, -1.5546559, -1.5762708, -1.5975711, -1.6185611, -1.6392614, -1.6597065, -1.6799303, -1.6999708, -1.7198399, -1.7396712, -2.0507588, -1.6859438, -1.3963735, -1.4195219, -1.4425024, -1.4653047, -1.4878973, -1.5102477, -1.5323323, -1.5541208, -1.575601, -1.5967866, -1.6176807, -1.6382822, -1.6585963, -1.6786132, -1.6984304, -1.7182095, -1.7380222, -2.0490859, -1.6856916, -1.3961215, -1.4192686, -1.4422467, -1.4650466, -1.4876117, -1.5098772, -1.5318402, -1.5535196, -1.574913, -1.5960188, -1.6168339, -1.637348, -1.657563, -1.6774582, -1.697177, -1.7169626, -1.7367649, -2.047782, -1.6854261, -1.3958502, -1.4189832, -1.4419484, -1.4647402, -1.4872643, -1.5094388, -1.5313112, -1.5529172, -1.5742486, -1.5953006, -1.6160649, -1.63653, -1.6567024, -1.6765915, -1.6962988, -1.7160673, -1.7359213, -2.0469844, -1.6851207, -1.3955337, -1.4186461, -1.4415977, -1.4643831, -1.4868774, -1.50899, -1.530807, -1.5523715, -1.5736681, -1.5946937, -1.6154402, -1.6359087, -1.6560938, -1.6760198, -1.6957282, -1.715459, -1.7354342, -2.046627, -1.6848048, -1.3952074, -1.4183019, -1.4412428, -1.4640158, -1.4864875, -1.5085697, -1.5303555, -1.5518996, -1.5731932, -1.5942279, -1.6149843, -1.635469, -1.6556871, -1.6756662, -1.6954335, -1.7152041, -1.7353197, -2.0466442, -1.6845127, -1.394902, -1.417971, -1.4408847, -1.4636183, -1.486066, -1.5081532, -1.5299367, -1.5514747, -1.5727768, -1.5938365, -1.6146309, -1.6351643, -1.6554601, -1.675549, -1.6954675, -1.7153786, -1.7356722, -2.0471323, -1.6842337, -1.394605, -1.4176327, -1.440492, -1.4631608, -1.4855764, -1.5076832, -1.5294924, -1.5510556, -1.572394, -1.5935049, -1.6143761, -1.6350161, -1.6554523, -1.6757244, -1.6958544, -1.7159804, -1.7364843, -2.048048, -1.9851234, -1.695486, -1.7184901, -1.7413168, -1.7639488, -1.7863433, -1.8084599, -1.8302909, -1.8518763, -1.8732433, -1.8943907, -1.9153117, -1.9360186, -1.956538, -1.9769148, -1.997155, -2.0174065, -2.0380168, -2.3496106]

for b in 1:3
    r = eval(Symbol("r", b))     # gives r1, r2, r3
    ϕ = eval(Symbol("ϕ", b))     # gives ϕ1, ϕ2, ϕ3
    nrho = eval(Symbol("nrho", b))

    g = RectilinearGrid{𝔼, typeof(Polar(0,0))}(r, ϕ)
    viz!(g, color = nrho)
end

gives

5 posts - 2 participants