Thank you very much for the tip.
I would also like to thank you for your old post on the same topic at
which i saw after i posted this thread.
Sometimes searching is very difficult in this forum. :)
I am sure this is a basic question..
i want the simplest way to save the puzzle generated on the console to be saved as an image.
I tried reading through ImageContext, Image, ctx etc but failed to understand.
For eg. let's say i want to save this display as an image..
# save display import ui w,h = ui.get_screen_size() view = ui.View(name = 'Grid', bg_color=1) view.add_subview(ui.View(name='left', frame=(0,0,w/3,h/5), bg_color='blue')) view.add_subview(ui.View(name='right', frame=(w*2/3,0,w/3,h/5), bg_color='red')) view.present('sheet')
I often get "cannot import name 'pyplot' error"
when i try to import matplotlib
As a work around, I go to Examples folder and run any plotting example, then it works,
after which i can import matplotlib normally.
The error states something about "frozen importlib._bootstrap"
How can i avoid this error, in pythonista 3
# Histogram # Basic plot import numpy as np import matplotlib.pyplot as plt height = [3, 12, 5, 18, 45] bars = ('A', 'B', 'C', 'D', 'E') y_pos = np.arange(len(bars)) plt.bar(y_pos, height, color=(0.2, 0.4, 0.6, 0.6)) # Custom Axis title plt.xlabel('X Axis Title', fontweight='bold', color = 'red', fontsize='17', horizontalalignment='center') plt.show()```