Open NMC-DAVE opened 5 years ago
Hi, I use "conda install -c conda-forge magics" install magics 4.1.2. And in jupyter notebook, when I run the example "projection-lambert.ipynb", I get the erros:
import Magics.macro as magics # Setting the projection projection = magics.mmap( subpage_map_projection = "lambert", subpage_lower_left_latitude = -0.00, subpage_lower_left_longitude = -80.00, subpage_upper_right_latitude = 70.00, subpage_upper_right_longitude = 160.00, subpage_map_area_definition = "corners", page_id_line = "on") # Defining the coastlines coast = magics.mcoast( map_coastline_resolution = "automatic", map_coastline_colour = "tan", map_coastline_land_shade = "on", map_coastline_land_shade_colour = "cream", map_grid = "on", map_grid_line_style = "dot", map_grid_colour = "tan" ) magics.plot(projection, coast)
--------------------------------------------------------------------------- MagicsError Traceback (most recent call last) <ipython-input-1-307c16173ba6> in <module> 22 ) 23 ---> 24 magics.plot(projection, coast) ~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in _jplot(*args) 609 all.extend(args) 610 --> 611 _plot(all) 612 613 image = Image(tmp) ~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in _plot(*args) 518 Magics.init() 519 for n in args: --> 520 _execute(n) 521 522 #Collect the drivers! ~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in _execute(o) 506 if isinstance(o, list) or isinstance(o, tuple): 507 for x in o: --> 508 _execute(x) 509 510 else: ~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in _execute(o) 510 else: 511 --> 512 o.execute() 513 514 def _plot(*args): ~/anaconda3/lib/python3.7/site-packages/Magics/macro.py in execute(self) 396 if self.action == Magics.legend : 397 Magics.setc("legend", "on") --> 398 self.action() 399 if self.action != Magics.obs and self.action != Magics.minput: 400 for key in list(self.args.keys()): ~/anaconda3/lib/python3.7/site-packages/Magics/Magics.py in wrapped(*args) 178 err = fn(*args) 179 if err: --> 180 raise MagicsError(err) 181 182 return wrapped MagicsError: Magics Error - No Plot Produced!!! (1083945801)
So how can i solve this, very thanks!
I will check that Sylvie
Hi, I use "conda install -c conda-forge magics" install magics 4.1.2. And in jupyter notebook, when I run the example "projection-lambert.ipynb", I get the erros:
So how can i solve this, very thanks!