• ramvee

    Love Pythonista And Love Reddit.
    I think the biggest advantage in moving to Reddit would be getting a more intelligent search, searching in this forum is not good.
    I am no expert but i see no downside to shifting to Reddit.

    posted in Pythonista read more
  • ramvee

    HI @sulcud,
    Mindnotes app, looks interesting,
    could you please put up the english version,
    when you are free.
    Thank you

    posted in Pythonista read more
  • ramvee

    @ccc
    Beauty !

    posted in Pythonista read more
  • ramvee

    Glad To See The Forum Back..
    Lot Of Catching Up To Do ! :)
    Thank You @omz and @JonB

    posted in General Discussion read more
  • ramvee

    @Phuket2 ,
    Thank you very much for the tip.
    I would also like to thank you for your old post on the same topic at
    https://forum.omz-software.com/topic/3401/share-using-draw_snapshot-method
    which i saw after i posted this thread.
    Sometimes searching is very difficult in this forum. :)
    Take Care

    posted in Pythonista read more
  • ramvee

    @cvp ,
    Thank You Very Much, Exactly What I Wanted.. :)

    posted in Pythonista read more
  • ramvee

    HI,
    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.
    Please help..

    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')
    

    posted in Pythonista read more
  • ramvee

    Thank you very much @ccc for your constant support and prompt help.

    Yes, I found some old file, i had named matplotlib.py ,
    I have renamed it and now everything works fine.
    Silly mistake on my part when i started with pythonista.

    posted in Pythonista read more
  • ramvee

    Hi,
    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

    Thank you.

    # 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()```

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!