omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    1D Coordinates?

    Pythonista
    4
    10
    6188
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bcraig_6973
      bcraig_6973 last edited by bcraig_6973

      Step by step how would I write and display in Python 3

      1D Coordinates?

      But I need Visual feedback

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        A "1D coordinate" is simply a number, and there are lots of ways you can visualize a number. You could draw a number line with scene or canvas, or you could display a ui.Slider, or you could plot something with matplotlib.

        It sounds like you're looking for something else though. What exactly are you trying to do? Perhaps we can help better if you give us some context.

        1 Reply Last reply Reply Quote 2
        • ccc
          ccc last edited by ccc

          @bcraig_6973 Perhaps check out http://matplotlib.org/mpl_toolkits/mplot3d/ and https://matplotlib.org/gallery.html The matplotlib Module plots 2D and 3D graphs and it is built into Pythonista.

          1 Reply Last reply Reply Quote 0
          • bcraig_6973
            bcraig_6973 last edited by

            Hi and Thanks for Your feedback.

            Well I am starting a math book on 3d math. Primer which I am not great at math so I am trying to grasp this stuff while learn Python becuase I learn by Visual feedback

            and First lesson are 
on
            1 Cartesian Coordinate Systems

            • 1.1  1DMathematics ...........

            • 1.2  2DCartesianSpace..........

            • 1.3  3DCartesianSpace..........

            • 1.4  OddsandEnds ....................... 19

            • 1.5  Exercises........................... 27

            I hope that makes more since And Thanks guys

            1 Reply Last reply Reply Quote 0
            • zipit
              zipit last edited by zipit

              I do not want to discourage you but you picked there one of the two reference handbooks in the field which both do not make any prisoners when it comes to their math and the algorithmic concepts.

              I would suggest that you pick easier goals especially if you are not a natural at mathematics. There is is for once the bit dated but still very elegent Vector Math for 3D Computer Graphics which explains the most important concepts of Linear Algebra very nicely. Also I would suggest you take a look at Processing, its tutorials and its python mode. It is an enviroment which has been explicitly designed for visual people.

              1 Reply Last reply Reply Quote 0
              • bcraig_6973
                bcraig_6973 last edited by

                @zipit said:

                would suggest that you pick easier goals especially if you are not a natural at mathematics. There is is for once the bit dated but still very elegent Vector Math for 3D Computer Graphics which explains the most important concepts of Linear Algebra very nicely. Also I would suggest you take a look at Processing, its tutorials and its python mode. It is an enviroment which has been explicitly designed for visual people.

                Thank You Sir
                If I have question may I ask you for assist ?

                zipit 1 Reply Last reply Reply Quote 0
                • zipit
                  zipit @bcraig_6973 last edited by

                  @bcraig_6973

                  Sure, shoot. Just ask them here in the forum, because there are probably people here which are more qualified to answer them than me.

                  cheers
                  zipit

                  1 Reply Last reply Reply Quote 0
                  • bcraig_6973
                    bcraig_6973 last edited by

                    What are modules do I need to be able to do this in python ?

                    Coordinate plane examples | Linear equations and functions | 8th grade | Khan Academy

                    https://m.youtube.com/watch?v=VhNkWdLGpmA&ebc=ANyPxKoUt4q93ODeY8ODf9TO1bKHZiL-AKDs7YDpsFYoibvjqRMYZRVWKmFykGRK4W7-2wwbbPYxLD7jx94tdxcc-3AwHvDEQg

                    1 Reply Last reply Reply Quote 0
                    • zipit
                      zipit last edited by zipit

                      Ploting and calculus can be done with numpy and matplotlib. Both are available in pythonista by default.

                      import numpy
                      from matplotlib import pyplot
                      
                      #100 linear samples between -10 and 10
                      x = numpy.linspace(-10, 10, 100)
                      #draw a red line through f(x) = x
                      pyplot.plot(x, x, 'r-')
                      #draw a blue dotted line through f(x) = sin(x)
                      pyplot.plot(x, numpy.sin(x), 'b--')
                      #show the plot
                      pyplot.show()
                      
                      1 Reply Last reply Reply Quote 1
                      • bcraig_6973
                        bcraig_6973 last edited by

                        Thank very I try to move from that point math
                        and slowly try to grasp these is math concepts related to python
                        again thanks I try to look up any of the this math symbols I do not know otherwise I'll ask you question 😃

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB Forums | Contributors