Magics is internally working in cm. All the superpage, page and subpage dimension should be given in cm. When working with png, you can set the parameter output_width to the number of pixel you want |
from Magics.macro import * #Setting output output = output( output_formats = ['png'], output_name = 'size', output_name_first_page_number = 'off', output_width = 1200) #Setting the coastlines background = mcoast( map_coastline_land_shade = 'on', map_coastline_land_shade_colour = 'cream') #Setting data grib = mgrib(grib_input_file_name = "path/data.grib") #Defining the contour contour = mcont( ) #Plotting plot(output, background, grib, data) |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.