Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress bar for animate.vertical_section* #195

Open
asiddi24 opened this issue Sep 15, 2021 · 6 comments
Open

Progress bar for animate.vertical_section* #195

asiddi24 opened this issue Sep 15, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@asiddi24
Copy link
Collaborator

OceanSpy version: v0.2.0

Description

I was trying to animate a vertical section on the ECCO dataset with the function animate.vertical_section. It works fine, except that the output in the jupyter notebook shows a new progress bar for each percentage increment. This is mostly a cosmetic issue for the animate function. The reason I opened this issue is that this does not happen every time I run the animate function.

What I Did

ax = ellet_line_section.animate.vertical_section(
    varName="V",
    contourName="Sigma0",
    robust=True,
    cmap="coolwarm")


The output looks like this 


  0%|          | 0/311 [00:00<?, ?it/s]
  0%|          | 1/311 [00:01<07:32,  1.46s/it]
  1%|          | 2/311 [00:02<06:54,  1.34s/it]
  1%|          | 3/311 [00:03<06:59,  1.36s/it]
  1%|▏         | 4/311 [00:05<07:03,  1.38s/it]
  2%|▏         | 5/311 [00:06<07:21,  1.44s/it]
  2%|▏         | 6/311 [00:08<07:21,  1.45s/it]
  2%|▏         | 7/311 [00:09<07:16,  1.44s/it]
  3%|▎         | 8/311 [00:11<07:15,  1.44s/it]
  3%|▎         | 9/311 [00:12<07:18,  1.45s/it]
  3%|▎         | 10/311 [00:14<07:01,  1.40s/it]
  4%|▎         | 11/311 [00:15<06:43,  1.34s/it]
  4%|▍         | 12/311 [00:16<06:39,  1.34s/it]
  4%|▍         | 13/311 [00:17<06:43,  1.35s/it]
  5%|▍         | 14/311 [00:19<06:43,  1.36s/it]
  5%|▍         | 15/311 [00:20<06:41,  1.36s/it]
  5%|▌         | 16/311 [00:21<06:35,  1.34s/it]
  5%|▌         | 17/311 [00:23<06:42,  1.37s/it]
  6%|▌         | 18/311 [00:24<06:52,  1.41s/it]
  6%|▌         | 19/311 [00:26<06:38,  1.36s/it]
  6%|▋         | 20/311 [00:27<06:37,  1.37s/it]
  7%|▋         | 21/311 [00:28<06:31,  1.35s/it]
  7%|▋         | 22/311 [00:30<06:43,  1.40s/it]
  7%|▋         | 23/311 [00:31<06:44,  1.41s/it]
  8%|▊         | 24/311 [00:33<06:47,  1.42s/it]
  8%|▊         | 25/311 [00:34<06:44,  1.42s/it]
  8%|▊         | 26/311 [00:36<07:01,  1.48s/it]
  9%|▊         | 27/311 [00:37<06:58,  1.47s/it]
  9%|▉         | 28/311 [00:39<06:47,  1.44s/it]
  9%|▉         | 29/311 [00:40<06:54,  1.47s/it]
 10%|▉         | 30/311 [00:44<09:45,  2.08s/it]
 10%|▉         | 31/311 [00:45<08:40,  1.86s/it]
 10%|█         | 32/311 [00:46<07:58,  1.72s/it]
 11%|█         | 33/311 [00:48<07:39,  1.65s/it]
 11%|█         | 34/311 [00:49<07:08,  1.55s/it]
 11%|█▏        | 35/311 [00:51<06:55,  1.51s/it]
 12%|█▏        | 36/311 [00:52<06:38,  1.45s/it]
 12%|█▏        | 37/311 [00:53<06:26,  1.41s/it]
 12%|█▏        | 38/311 [00:55<06:25,  1.41s/it]
 13%|█▎        | 39/311 [00:56<06:17,  1.39s/it]
 13%|█▎        | 40/311 [00:57<06:16,  1.39s/it]
 13%|█▎        | 41/311 [00:59<06:22,  1.42s/it]
 14%|█▎        | 42/311 [01:00<06:29,  1.45s/it]
 14%|█▍        | 43/311 [01:02<06:14,  1.40s/it]
 14%|█▍        | 44/311 [01:03<06:10,  1.39s/it]
 14%|█▍        | 45/311 [01:04<06:10,  1.39s/it]
 15%|█▍        | 46/311 [01:06<06:17,  1.43s/it]
 15%|█▌        | 47/311 [01:07<06:08,  1.40s/it]
 15%|█▌        | 48/311 [01:09<06:04,  1.39s/it]
 16%|█▌        | 49/311 [01:10<05:52,  1.34s/it]
 16%|█▌        | 50/311 [01:11<05:48,  1.33s/it]
 16%|█▋        | 51/311 [01:13<05:50,  1.35s/it]
 17%|█▋        | 52/311 [01:14<05:43,  1.33s/it]
 17%|█▋        | 53/311 [01:15<05:57,  1.39s/it]
 17%|█▋        | 54/311 [01:17<05:56,  1.39s/it]
 18%|█▊        | 55/311 [01:18<05:51,  1.37s/it]
 18%|█▊        | 56/311 [01:19<05:49,  1.37s/it]
 18%|█▊        | 57/311 [01:21<06:06,  1.44s/it]
 19%|█▊        | 58/311 [01:22<06:01,  1.43s/it]
 19%|█▉        | 59/311 [01:24<05:59,  1.43s/it]
 19%|█▉        | 60/311 [01:25<05:56,  1.42s/it]
 20%|█▉        | 61/311 [01:29<08:28,  2.03s/it]
 20%|█▉        | 62/311 [01:30<07:41,  1.85s/it]
 20%|██        | 63/311 [01:32<07:05,  1.72s/it]
 21%|██        | 64/311 [01:33<06:39,  1.62s/it]
 21%|██        | 65/311 [01:34<06:23,  1.56s/it]
 21%|██        | 66/311 [01:36<06:15,  1.53s/it]
 22%|██▏       | 67/311 [01:37<05:57,  1.46s/it]
 22%|██▏       | 68/311 [01:38<05:40,  1.40s/it]
 22%|██▏       | 69/311 [01:40<05:45,  1.43s/it]
 23%|██▎       | 70/311 [01:41<05:38,  1.41s/it]
 23%|██▎       | 71/311 [01:43<05:31,  1.38s/it]
 23%|██▎       | 72/311 [01:44<05:26,  1.37s/it]
 23%|██▎       | 73/311 [01:45<05:21,  1.35s/it]
 24%|██▍       | 74/311 [01:47<05:29,  1.39s/it]
 24%|██▍       | 75/311 [01:48<05:30,  1.40s/it]
 24%|██▍       | 76/311 [01:49<05:18,  1.36s/it]
 25%|██▍       | 77/311 [01:51<05:14,  1.34s/it]
 25%|██▌       | 78/311 [01:52<05:25,  1.40s/it]
 25%|██▌       | 79/311 [01:54<05:19,  1.38s/it]
 26%|██▌       | 80/311 [01:55<05:14,  1.36s/it]
 26%|██▌       | 81/311 [01:56<05:17,  1.38s/it]
 26%|██▋       | 82/311 [01:58<05:25,  1.42s/it]
 27%|██▋       | 83/311 [01:59<05:18,  1.40s/it]
 27%|██▋       | 84/311 [02:00<05:09,  1.36s/it]
 27%|██▋       | 85/311 [02:02<05:06,  1.36s/it]
 28%|██▊       | 86/311 [02:03<05:12,  1.39s/it]
 28%|██▊       | 87/311 [02:05<05:13,  1.40s/it]
 28%|██▊       | 88/311 [02:06<05:09,  1.39s/it]
 29%|██▊       | 89/311 [02:07<05:09,  1.40s/it]
 29%|██▉       | 90/311 [02:09<05:08,  1.39s/it]
 29%|██▉       | 91/311 [02:10<05:00,  1.37s/it]
 30%|██▉       | 92/311 [02:11<04:55,  1.35s/it]
 30%|██▉       | 93/311 [02:13<04:54,  1.35s/it]
 30%|███       | 94/311 [02:14<04:46,  1.32s/it]
 31%|███       | 95/311 [02:17<06:55,  1.92s/it]
 31%|███       | 96/311 [02:19<06:21,  1.77s/it]
 31%|███       | 97/311 [02:20<05:58,  1.67s/it]
 32%|███▏      | 98/311 [02:22<05:45,  1.62s/it]
 32%|███▏      | 99/311 [02:23<05:35,  1.58s/it]
 32%|███▏      | 100/311 [02:25<05:23,  1.53s/it]
 32%|███▏      | 101/311 [02:26<05:11,  1.48s/it]
 33%|███▎      | 102/311 [02:28<05:12,  1.49s/it]
 33%|███▎      | 103/311 [02:29<05:02,  1.45s/it]
 33%|███▎      | 104/311 [02:30<04:54,  1.42s/it]
 34%|███▍      | 105/311 [02:32<04:46,  1.39s/it]
 34%|███▍      | 106/311 [02:33<04:50,  1.42s/it]
 34%|███▍      | 107/311 [02:34<04:42,  1.39s/it]
 35%|███▍      | 108/311 [02:36<04:39,  1.38s/it]
 35%|███▌      | 109/311 [02:37<04:33,  1.35s/it]
 35%|███▌      | 110/311 [02:38<04:30,  1.34s/it]
 36%|███▌      | 111/311 [02:40<04:37,  1.39s/it]
 36%|███▌      | 112/311 [02:41<04:31,  1.37s/it]
 36%|███▋      | 113/311 [02:42<04:27,  1.35s/it]
 37%|███▋      | 114/311 [02:44<04:31,  1.38s/it]
 37%|███▋      | 115/311 [02:45<04:35,  1.41s/it]
 37%|███▋      | 116/311 [02:47<04:36,  1.42s/it]
 38%|███▊      | 117/311 [02:48<04:35,  1.42s/it]
 38%|███▊      | 118/311 [02:50<04:38,  1.44s/it]
 38%|███▊      | 119/311 [02:51<04:37,  1.44s/it]
 39%|███▊      | 120/311 [02:53<04:31,  1.42s/it]
 39%|███▉      | 121/311 [02:54<04:27,  1.41s/it]
 39%|███▉      | 122/311 [02:55<04:24,  1.40s/it]
 40%|███▉      | 123/311 [02:57<04:26,  1.42s/it]
 40%|███▉      | 124/311 [02:58<04:15,  1.37s/it]
 40%|████      | 125/311 [02:59<04:11,  1.35s/it]
 41%|████      | 126/311 [03:01<04:11,  1.36s/it]
 41%|████      | 127/311 [03:02<04:17,  1.40s/it]
 41%|████      | 128/311 [03:04<04:13,  1.39s/it]
 41%|████▏     | 129/311 [03:05<04:07,  1.36s/it]
 42%|████▏     | 130/311 [03:06<04:01,  1.34s/it]
 42%|████▏     | 131/311 [03:08<04:03,  1.35s/it]
 42%|████▏     | 132/311 [03:09<04:04,  1.37s/it]
 43%|████▎     | 133/311 [03:10<04:01,  1.36s/it]
 43%|████▎     | 134/311 [03:12<04:04,  1.38s/it]
 43%|████▎     | 135/311 [03:16<06:11,  2.11s/it]
 44%|████▎     | 136/311 [03:17<05:42,  1.96s/it]
 44%|████▍     | 137/311 [03:19<05:18,  1.83s/it]
 44%|████▍     | 138/311 [03:20<04:58,  1.73s/it]
 45%|████▍     | 139/311 [03:22<04:49,  1.68s/it]
 45%|████▌     | 140/311 [03:23<04:43,  1.66s/it]
 45%|████▌     | 141/311 [03:25<04:28,  1.58s/it]
 46%|████▌     | 142/311 [03:26<04:14,  1.50s/it]
 46%|████▌     | 143/311 [03:28<04:13,  1.51s/it]
 46%|████▋     | 144/311 [03:29<04:09,  1.50s/it]
 47%|████▋     | 145/311 [03:31<04:13,  1.53s/it]
 47%|████▋     | 146/311 [03:32<04:10,  1.52s/it]
 47%|████▋     | 147/311 [03:34<04:06,  1.50s/it]
 48%|████▊     | 148/311 [03:35<03:58,  1.47s/it]
 48%|████▊     | 149/311 [03:37<04:07,  1.53s/it]
 48%|████▊     | 150/311 [03:38<04:04,  1.52s/it]
 49%|████▊     | 151/311 [03:40<03:56,  1.48s/it]
 49%|████▉     | 152/311 [03:41<03:51,  1.46s/it]
 49%|████▉     | 153/311 [03:42<03:54,  1.48s/it]
 50%|████▉     | 154/311 [03:44<03:50,  1.47s/it]
 50%|████▉     | 155/311 [03:45<03:44,  1.44s/it]
 50%|█████     | 156/311 [03:47<03:43,  1.44s/it]
 50%|█████     | 157/311 [03:48<03:41,  1.44s/it]
 51%|█████     | 158/311 [03:50<03:39,  1.44s/it]
 51%|█████     | 159/311 [03:51<03:39,  1.45s/it]
 51%|█████▏    | 160/311 [03:52<03:36,  1.44s/it]
 52%|█████▏    | 161/311 [03:54<03:38,  1.46s/it]
 52%|█████▏    | 162/311 [03:56<03:45,  1.51s/it]
 52%|█████▏    | 163/311 [03:57<03:35,  1.46s/it]
 53%|█████▎    | 164/311 [03:58<03:35,  1.46s/it]
 53%|█████▎    | 165/311 [04:00<03:34,  1.47s/it]
 53%|█████▎    | 166/311 [04:01<03:31,  1.46s/it]
 54%|█████▎    | 167/311 [04:03<03:31,  1.47s/it]
 54%|█████▍    | 168/311 [04:04<03:30,  1.47s/it]
 54%|█████▍    | 169/311 [04:06<03:23,  1.43s/it]
 55%|█████▍    | 170/311 [04:07<03:27,  1.47s/it]
 55%|█████▍    | 171/311 [04:09<03:33,  1.52s/it]
 55%|█████▌    | 172/311 [04:10<03:32,  1.53s/it]
 56%|█████▌    | 173/311 [04:12<03:30,  1.53s/it]
 56%|█████▌    | 174/311 [04:13<03:27,  1.52s/it]
 56%|█████▋    | 175/311 [04:15<03:30,  1.55s/it]
 57%|█████▋    | 176/311 [04:16<03:22,  1.50s/it]
 57%|█████▋    | 177/311 [04:20<04:43,  2.11s/it]
 57%|█████▋    | 178/311 [04:21<04:07,  1.86s/it]
 58%|█████▊    | 179/311 [04:22<03:39,  1.67s/it]
 58%|█████▊    | 180/311 [04:24<03:26,  1.57s/it]
 58%|█████▊    | 181/311 [04:25<03:10,  1.47s/it]
 59%|█████▊    | 182/311 [04:26<03:03,  1.42s/it]
 59%|█████▉    | 183/311 [04:28<03:03,  1.43s/it]
 59%|█████▉    | 184/311 [04:29<03:03,  1.44s/it]
 59%|█████▉    | 185/311 [04:31<03:00,  1.43s/it]
 60%|█████▉    | 186/311 [04:32<02:54,  1.40s/it]
 60%|██████    | 187/311 [04:33<02:49,  1.37s/it]
 60%|██████    | 188/311 [04:35<02:54,  1.42s/it]
 61%|██████    | 189/311 [04:36<02:53,  1.42s/it]
 61%|██████    | 190/311 [04:38<02:51,  1.42s/it]
 61%|██████▏   | 191/311 [04:39<02:48,  1.41s/it]
 62%|██████▏   | 192/311 [04:40<02:46,  1.40s/it]
 62%|██████▏   | 193/311 [04:42<02:43,  1.38s/it]
 62%|██████▏   | 194/311 [04:43<02:42,  1.39s/it]
 63%|██████▎   | 195/311 [04:45<02:45,  1.42s/it]
 63%|██████▎   | 196/311 [04:46<02:48,  1.47s/it]
 63%|██████▎   | 197/311 [04:48<02:45,  1.45s/it]
 64%|██████▎   | 198/311 [04:49<02:41,  1.43s/it]
 64%|██████▍   | 199/311 [04:51<02:44,  1.47s/it]
 64%|██████▍   | 200/311 [04:52<02:38,  1.43s/it]
 65%|██████▍   | 201/311 [04:53<02:35,  1.41s/it]
 65%|██████▍   | 202/311 [04:55<02:31,  1.39s/it]
 65%|██████▌   | 203/311 [04:56<02:26,  1.36s/it]
 66%|██████▌   | 204/311 [04:57<02:28,  1.39s/it]
 66%|██████▌   | 205/311 [04:59<02:28,  1.40s/it]
 66%|██████▌   | 206/311 [05:00<02:26,  1.40s/it]
 67%|██████▋   | 207/311 [05:02<02:26,  1.40s/it]
 67%|██████▋   | 208/311 [05:03<02:30,  1.46s/it]
 67%|██████▋   | 209/311 [05:05<02:28,  1.45s/it]
 68%|██████▊   | 210/311 [05:06<02:28,  1.47s/it]
 68%|██████▊   | 211/311 [05:08<02:25,  1.45s/it]
 68%|██████▊   | 212/311 [05:09<02:25,  1.47s/it]
 68%|██████▊   | 213/311 [05:11<02:22,  1.46s/it]
 69%|██████▉   | 214/311 [05:12<02:18,  1.43s/it]
 69%|██████▉   | 215/311 [05:13<02:15,  1.41s/it]
 69%|██████▉   | 216/311 [05:15<02:11,  1.39s/it]
 70%|██████▉   | 217/311 [05:16<02:13,  1.42s/it]
 70%|███████   | 218/311 [05:17<02:09,  1.39s/it]
 70%|███████   | 219/311 [05:19<02:06,  1.37s/it]
 71%|███████   | 220/311 [05:22<03:02,  2.01s/it]
 71%|███████   | 221/311 [05:24<02:44,  1.82s/it]
 71%|███████▏  | 222/311 [05:25<02:27,  1.66s/it]
 72%|███████▏  | 223/311 [05:26<02:14,  1.53s/it]
 72%|███████▏  | 224/311 [05:28<02:09,  1.48s/it]
 72%|███████▏  | 225/311 [05:29<02:07,  1.48s/it]
 73%|███████▎  | 226/311 [05:30<02:02,  1.44s/it]
 73%|███████▎  | 227/311 [05:32<01:56,  1.39s/it]
 73%|███████▎  | 228/311 [05:33<01:55,  1.39s/it]
 74%|███████▎  | 229/311 [05:34<01:56,  1.42s/it]
 74%|███████▍  | 230/311 [05:36<02:01,  1.50s/it]
 74%|███████▍  | 231/311 [05:38<02:02,  1.53s/it]
 75%|███████▍  | 232/311 [05:39<02:02,  1.55s/it]
 75%|███████▍  | 233/311 [05:41<01:58,  1.52s/it]
 75%|███████▌  | 234/311 [05:42<01:56,  1.51s/it]
 76%|███████▌  | 235/311 [05:44<01:52,  1.48s/it]
 76%|███████▌  | 236/311 [05:45<01:50,  1.47s/it]
 76%|███████▌  | 237/311 [05:46<01:44,  1.41s/it]
 77%|███████▋  | 238/311 [05:48<01:41,  1.39s/it]
 77%|███████▋  | 239/311 [05:49<01:39,  1.38s/it]
 77%|███████▋  | 240/311 [05:50<01:38,  1.39s/it]
 77%|███████▋  | 241/311 [05:52<01:37,  1.40s/it]
 78%|███████▊  | 242/311 [05:53<01:35,  1.38s/it]
 78%|███████▊  | 243/311 [05:55<01:35,  1.40s/it]
 78%|███████▊  | 244/311 [05:56<01:36,  1.44s/it]
 79%|███████▉  | 245/311 [05:58<01:36,  1.46s/it]
 79%|███████▉  | 246/311 [05:59<01:33,  1.44s/it]
 79%|███████▉  | 247/311 [06:01<01:31,  1.43s/it]
 80%|███████▉  | 248/311 [06:02<01:28,  1.41s/it]
 80%|████████  | 249/311 [06:03<01:28,  1.42s/it]
 80%|████████  | 250/311 [06:05<01:26,  1.42s/it]
 81%|████████  | 251/311 [06:06<01:25,  1.43s/it]
 81%|████████  | 252/311 [06:08<01:24,  1.42s/it]
 81%|████████▏ | 253/311 [06:09<01:22,  1.41s/it]
 82%|████████▏ | 254/311 [06:10<01:18,  1.38s/it]
 82%|████████▏ | 255/311 [06:12<01:20,  1.44s/it]
 82%|████████▏ | 256/311 [06:13<01:18,  1.42s/it]
 83%|████████▎ | 257/311 [06:15<01:15,  1.41s/it]
 83%|████████▎ | 258/311 [06:16<01:13,  1.39s/it]
 83%|████████▎ | 259/311 [06:18<01:14,  1.43s/it]
 84%|████████▎ | 260/311 [06:19<01:11,  1.41s/it]
 84%|████████▍ | 261/311 [06:20<01:07,  1.35s/it]
 84%|████████▍ | 262/311 [06:21<01:04,  1.32s/it]
 85%|████████▍ | 263/311 [06:25<01:39,  2.08s/it]
 85%|████████▍ | 264/311 [06:27<01:27,  1.87s/it]
 85%|████████▌ | 265/311 [06:28<01:20,  1.76s/it]
 86%|████████▌ | 266/311 [06:29<01:13,  1.64s/it]
 86%|████████▌ | 267/311 [06:31<01:10,  1.60s/it]
 86%|████████▌ | 268/311 [06:32<01:07,  1.56s/it]
 86%|████████▋ | 269/311 [06:34<01:04,  1.54s/it]
 87%|████████▋ | 270/311 [06:36<01:04,  1.58s/it]
 87%|████████▋ | 271/311 [06:37<01:01,  1.55s/it]
 87%|████████▋ | 272/311 [06:38<00:58,  1.50s/it]
 88%|████████▊ | 273/311 [06:40<00:55,  1.47s/it]
 88%|████████▊ | 274/311 [06:41<00:54,  1.48s/it]
 88%|████████▊ | 275/311 [06:43<00:52,  1.45s/it]
 89%|████████▊ | 276/311 [06:44<00:50,  1.44s/it]
 89%|████████▉ | 277/311 [06:45<00:47,  1.41s/it]
 89%|████████▉ | 278/311 [06:47<00:46,  1.40s/it]
 90%|████████▉ | 279/311 [06:48<00:46,  1.45s/it]
 90%|█████████ | 280/311 [06:50<00:43,  1.42s/it]
 90%|█████████ | 281/311 [06:51<00:42,  1.40s/it]
 91%|█████████ | 282/311 [06:53<00:41,  1.44s/it]
 91%|█████████ | 283/311 [06:54<00:38,  1.37s/it]
 91%|█████████▏| 284/311 [06:55<00:36,  1.36s/it]
 92%|█████████▏| 285/311 [06:57<00:35,  1.38s/it]
 92%|█████████▏| 286/311 [06:58<00:36,  1.45s/it]
 92%|█████████▏| 287/311 [07:00<00:34,  1.43s/it]
 93%|█████████▎| 288/311 [07:01<00:32,  1.41s/it]
 93%|█████████▎| 289/311 [07:02<00:31,  1.42s/it]
 93%|█████████▎| 290/311 [07:04<00:30,  1.45s/it]
 94%|█████████▎| 291/311 [07:05<00:28,  1.44s/it]
 94%|█████████▍| 292/311 [07:07<00:27,  1.43s/it]
 94%|█████████▍| 293/311 [07:08<00:25,  1.41s/it]
 95%|█████████▍| 294/311 [07:09<00:23,  1.39s/it]
 95%|█████████▍| 295/311 [07:11<00:22,  1.39s/it]
 95%|█████████▌| 296/311 [07:12<00:20,  1.39s/it]
 95%|█████████▌| 297/311 [07:14<00:19,  1.38s/it]
 96%|█████████▌| 298/311 [07:15<00:17,  1.33s/it]
 96%|█████████▌| 299/311 [07:16<00:15,  1.32s/it]
 96%|█████████▋| 300/311 [07:18<00:14,  1.36s/it]
 97%|█████████▋| 301/311 [07:19<00:13,  1.33s/it]
 97%|█████████▋| 302/311 [07:20<00:12,  1.33s/it]
 97%|█████████▋| 303/311 [07:21<00:10,  1.32s/it]
 98%|█████████▊| 304/311 [07:23<00:09,  1.35s/it]
 98%|█████████▊| 305/311 [07:24<00:08,  1.39s/it]
 98%|█████████▊| 306/311 [07:26<00:07,  1.41s/it]
 99%|█████████▊| 307/311 [07:27<00:05,  1.40s/it]
 99%|█████████▉| 308/311 [07:30<00:05,  1.94s/it]
 99%|█████████▉| 309/311 [07:32<00:03,  1.76s/it]
100%|█████████▉| 310/311 [07:33<00:01,  1.64s/it]
100%|██████████| 311/311 [07:34<00:00,  1.55s/it]
312it [07:36,  1.48s/it]        
@asiddi24 asiddi24 added the enhancement New feature or request label Sep 15, 2021
@asiddi24
Copy link
Collaborator Author

I think I know what the problem was. This can be fixed if I call a figure instance before invoking the animation. This way, the animate function doesn't create a new figure every time it iterates.

fig= plt.figure(figsize=(10, 4), frameon=True)
ax = ellet_line_section.animate.vertical_section(
    varName="V",
    contourName="Sigma0",
    robust=True,
    cmap="coolwarm")

doesn't give the same output. You simply get a single progress bar.

312it [07:34, 1.34s/it]

@malmans2
Copy link
Contributor

malmans2 commented Sep 15, 2021

Good catch! I guess we could try to initialize the figure in animate if it isn't already.
Maybe something like:

if not plt.get_fignums():
    plt.figure()

@ThomasHaine
Copy link
Collaborator

@asiddi24, please investigate and fix if necessary.

@Mikejmnez
Copy link
Collaborator

I am still trying to figure out if this is an issue. That is, if after all this time, whether this remains an issue. I ran the following cell within Kogur.ipynb:

anim = od_surv.animate.vertical_section(
    varName="ort_Vel",
    contourName="Sigma0",
    robust=True,
    cmap="coolwarm",
    display=True,
)

about 10 times. I also change the variable being plotted (tried Temp, S, U and V). I couldn't reproduce the behavior described by Ali. Not saying that this isn't an issue anymore. Just adding to this thread that I failed to reproduce the behavior.

@MaceKuailv
Copy link
Collaborator

image
I cannot reproduce this error because there is a different bug. Maybe I am doing something wrong, but the vertical section function (both animate and plot) are taking forever. It would be nice if someone has a working example that is very fast to run.

@MaceKuailv
Copy link
Collaborator

Some updates: it did run, but it was very very slow. Also, I didn't see any progressbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants