mkulesh / microMathematics

microMathematics Plus - Extended visual calculator
GNU General Public License v3.0
566 stars 68 forks source link

3D Plot with indexed variable #75

Closed jinx100 closed 3 years ago

jinx100 commented 6 years ago

A 3D plot y(x1,x2) does plot y against x1 and x2. If one of the variables is indexed, say y(x1[N],x2), then the plot axes are N and x2. Shouldn't the axes be x1[N] and x2? An example is attached. Even zip won't work so

`<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

`
mkulesh commented 3 years ago

Hi @jinx100, Sorry for the radio silence for a while, I worked for an other project last time. I expanded the plots. Now it is possible to use an array variable as a plot parameter directly without an index. It means the axis range will now be equal to the array values range instead of index range. A new example scaled_axis.mmt is now available in the resources of the app (committed as https://github.com/mkulesh/microMathematics/blob/master/app/src/main/assets/examples/scaled_axis.mmt). If you like to test it please install the latest nightly build and take a look on this example.

jinx100 commented 3 years ago

Hi Mikhail,

Thanks for the fix!

Just for fun I applied it to your 3-D plot example (attached) and the result is not interesting.

Ken

On 11/17/20, Mikhail Kulesh notifications@github.com wrote:

Hi @jinx100, Sorry for the radio silence for a while, I worked for an other project last time. I expanded the plots. Now it is possible to use an array variable as a plot parameter directly without an index. It means the axis range will now be equal to the array values range instead of index range. A new example scaled_axis.mmt is now available in the resources of the app (committed as https://github.com/mkulesh/microMathematics/blob/master/app/src/main/assets/examples/scaled_axis.mmt). If you like to test it please install the latest nightly build and take a look on this example.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/mkulesh/microMathematics/issues/75#issuecomment-728840960

jinx100 commented 3 years ago

Mikhail,

Here is a better way to show this option.

Ken

On 11/21/20, ken webb a1candide@gmail.com wrote:

Hi Mikhail,

Thanks for the fix!

Just for fun I applied it to your 3-D plot example (attached) and the result is not interesting.

Ken

On 11/17/20, Mikhail Kulesh notifications@github.com wrote:

Hi @jinx100, Sorry for the radio silence for a while, I worked for an other project last time. I expanded the plots. Now it is possible to use an array variable as a plot parameter directly without an index. It means the axis range will now be equal to the array values range instead of index range. A new example scaled_axis.mmt is now available in the resources of the app (committed as https://github.com/mkulesh/microMathematics/blob/master/app/src/main/assets/examples/scaled_axis.mmt). If you like to test it please install the latest nightly build and take a look on this example.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/mkulesh/microMathematics/issues/75#issuecomment-728840960

mkulesh commented 3 years ago

Hi @jinx100 thank you for testing. Unfortunately I am not able to see your attachments. Could you please send it me per email on mikhail.kulesh@gmail.com?

mkulesh commented 3 years ago

Hi @jinx100, thank you for the examples. I found your version of scaled_axis.mmt better than my. It is now committed and I will release it in the version 2.20.2

mkulesh commented 3 years ago

Released in version 2.20.1