Home Forums Nazca How to generate numbers or texts of wanted size?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5245
    willie_woud
    Participant

    I want to number the device in order, but I can’t find a suitable function in nazca.

    like this below:

    #5251
    Ronald
    Keymaster

    Dear willie_woud,

    This should do it:

    import nazca as nd
    
    for i in range(5):
        nd.text('{}D'.format(i), height=10+5*i).put(40*i)
    nd.export_plt()

    Ronald

    #5252
    willie_woud
    Participant

    Thanks! It works. ¬†Looking forward to your update to the function “nazca.text” of the¬† manual .

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.