-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update graphdemo.jl #279
base: master
Are you sure you want to change the base?
Update graphdemo.jl #279
Conversation
Update formatting of module add minortick to xticks and yticks add more arrow functions
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #279 +/- ##
=======================================
Coverage 74.45% 74.45%
=======================================
Files 35 35
Lines 6701 6701
=======================================
Hits 4989 4989
Misses 1712 1712 ☔ View full report in Codecov by Sentry. |
Note that most Julia script does not indent the body of the module.
|
In theory, if you change the code so that the output looks different, you should probably also update the output file (in |
Sorry. Originally the module itself is in another file but I rather have only one file instead of two separate files. On it's own file, I have always indented the contents of the module so I guess that I have mess up. Also, please run the file and update the SVG file in in docs/src/assets/figures/ |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Update formatting of module luxorgraphtools by indenting module source code
add minorticks feature to function lit_create_graph_xticks and function lit_create_graph_yticks
add more arrow functions
lit_graph_arrow_text_cart_W
lit_graph_arrow_text_cart_NW
lit_graph_arrow_text_cart_SW
add more arrows to the graph
""" Draw Arrow for (cos(π x) - sin(2x)) exp(-0.2x) """
xvalue = 3.6
xcoor = lit_convert_graph_xvalue_to_cart_xcoor(canvasconfig,xvalue,xlims,myplottingarea)
yvalue = -1 * (sin(2 * xvalue) + cos(pi * xvalue)) * exp(-0.2 * xvalue)
ycoor = lit_convert_graph_yvalue_to_cart_ycoor(canvasconfig,yvalue,ylims,myplottingarea)
lit_graph_arrow_text_cart_W("(cos(π x) - sin(2x)) exp(-0.2x)",xcoor,ycoor)
""" Draw Arrow for cos(x) """
xvalue = 4.9
xcoor = lit_convert_graph_xvalue_to_cart_xcoor(canvasconfig,xvalue,xlims,myplottingarea)
yvalue = cos(xvalue)
ycoor = lit_convert_graph_yvalue_to_cart_ycoor(canvasconfig,yvalue,ylims,myplottingarea)
lit_graph_arrow_text_cart_NW("cos(x)",xcoor,ycoor,arrow_length=40)
""" Draw Arrow for sin(x) """
xvalue = 3.1
xcoor = lit_convert_graph_xvalue_to_cart_xcoor(canvasconfig,xvalue,xlims,myplottingarea)
yvalue = sin(xvalue)
ycoor = lit_convert_graph_yvalue_to_cart_ycoor(canvasconfig,yvalue,ylims,myplottingarea)
lit_graph_arrow_text_cart_SW("sin(x)",xcoor,ycoor,arrow_length=40,horizontal_length=20)
update calling xticks and yticks to set minorticks flag to true