Code Monkey home page Code Monkey logo

Comments (12)

fsmMLK avatar fsmMLK commented on August 16, 2024

You have to use -3.0/2*x-3. one of the values of the division must be a float number (python 2 limitations).

There is another way of ensuring proper division (i.e. not truncating division) I will implement it and upload a new version soon.

BTW: isn't your question concerning inkscapeCartesianPlotFunction2D repository?

from inkscapecartesianplotdata2d.

fsmMLK avatar fsmMLK commented on August 16, 2024

It should work now. Download the .py again.

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

That worked! Thanks!

Is there a good place to find out how the functions need to be entered for non-python folks?

from inkscapecartesianplotdata2d.

fsmMLK avatar fsmMLK commented on August 16, 2024

https://docs.python.org/2/library/math.html

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

One last question. I am trying to plot x=-1 but this throws an error. Do I have to format this a certain way?

from inkscapecartesianplotdata2d.

fsmMLK avatar fsmMLK commented on August 16, 2024

x=-1 is not a function (vertical line, crossing x axis at x=-1). Did you mean y=-1 (horizontal line crossing y axis at -1)?

The first case will not work, The second should work just fine by typing -1 at the Function field. It works here in my computer.

If you really need to plot x=-1, then it is better to generate only the axes (https://github.com/fsmMLK/inkscapeCartesianAxes2D) and add the line manually.

PS: thanks for reporting the issue with the division operation. Let me know if you still find problems.

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

Makes sense. Thanks again. This extension is going to save me so much time building graphics!

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

from inkscapecartesianplotdata2d.

fsmMLK avatar fsmMLK commented on August 16, 2024

abs(x)

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

from inkscapecartesianplotdata2d.

fsmMLK avatar fsmMLK commented on August 16, 2024

Are you using negative x limit? Remember that sqrt of negative numbers are complex. The function will fail in such case.

from inkscapecartesianplotdata2d.

thebeliever74 avatar thebeliever74 commented on August 16, 2024

from inkscapecartesianplotdata2d.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.