Forum Archive

1D Coordinates?

bcraig_6973

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

1D Coordinates?

But I need Visual feedback

dgelessus

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.

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.

bcraig_6973

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

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.

bcraig_6973

@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

@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

bcraig_6973

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

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()
bcraig_6973

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 😃