-
Notifications
You must be signed in to change notification settings - Fork 71
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
Source code for how to create a graph for inclusion in Luxor Documentation #274
Comments
Haha, very good! A welcome PR. I've carefully avoided positioning Luxor as a plotting tool, but ithis is a nice demonstration of graphical possibilities. A good place to put it would be here: http://juliagraphics.github.io/Luxor.jl/dev/example/moreexamples/ .. Personally, I'd adjust the aesthetics a bit - the axes are too heavy, since they're subordinate to the curves. A bit more Edward Tufte styling would be welcome! |
Personally, I'd adjust the aesthetics a bit - the axes are too heavy,
since they're subordinate to the curves. A bit more Edward Tufte
<https://www.edwardtufte.com/tufte/> styling would be welcome!
You can adjust the thickness yourself. By the way, I do not know who Edward
Tufta is.
The code for the axes window are
sethue("red")
setline(4)
""" Draw the outline of the graph box """
points = [Point(myplottingarea.xtopleft,myplottingarea.ytopleft),
Point(myplottingarea.xbotleft,myplottingarea.ybotleft),
Point(myplottingarea.xbotright,myplottingarea.ybotright)]
poly(points, :stroke, close=false)
setline(2)
Anyway let me have some time to put the source code in a textfile so that I
can test it before sending it to you.
…On Tue, Oct 10, 2023 at 6:13 PM cormullion ***@***.***> wrote:
Haha, very good! A welcome PR.
I've carefully avoided positioning Luxor as a plotting tool, but ithis is
a nice demonstration of graphical possibilities.
A good place to put it would be here:
http://juliagraphics.github.io/Luxor.jl/dev/example/moreexamples/ ..
Personally, I'd adjust the aesthetics a bit - the axes are too heavy,
since they're subordinate to the curves. A bit more Edward Tufte
<https://www.edwardtufte.com/tufte/> styling would be welcome!
—
Reply to this email directly, view it on GitHub
<#274 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANM3SBYBHIEPZ6GFUFROLRTX6TYTHAVCNFSM6AAAAAA5ZY7M4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGU2TONRTHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Alright, this is my first attempt at sending you the source code. I will attached a text file to this comment. My attempt to attached the file "LuxorGraphDemo.jl" has failed Apparently the comment does not support a file ending with .jl I will rename LuxorGraphDemo.jl to LuxorGraphDemo.txt Please rename the file back to LuxorGraphDemo.jl Almost forgot, it's a textfile from a Mac machine. I am not sure if you need to convert it to a PC format. Let me know how it goes. |
Thanks, I'll add it for the next release. |
You make want to check that it works first and maybe clean up the code a bit before adding it to your documentation. It was not originally designed for publication. I wrote it because I just want to see if I can get Luxor to plot a generic graph. |
Cool, and thanks. If you want to make further changes, you can now make a Pull Request! - the code is in I made a few changes, but otherwise it's all your code. None of the fonts you specified seem to be used in the file I generated - but this is quite usual, they never work properly on someone else's computer. |
Is there a way for Luxor to read in images directly from the web.
For example: https://i.imgur.com/xdy68Zg.jpeg
If so can you put the instructions to do so on the Luxor tutorial?
Regards
Steven Siew
…On Tue, Oct 10, 2023 at 6:13 PM cormullion ***@***.***> wrote:
Haha, very good! A welcome PR.
I've carefully avoided positioning Luxor as a plotting tool, but ithis is
a nice demonstration of graphical possibilities.
A good place to put it would be here:
http://juliagraphics.github.io/Luxor.jl/dev/example/moreexamples/ ..
Personally, I'd adjust the aesthetics a bit - the axes are too heavy,
since they're subordinate to the curves. A bit more Edward Tufte
<https://www.edwardtufte.com/tufte/> styling would be welcome!
—
Reply to this email directly, view it on GitHub
<#274 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANM3SBYBHIEPZ6GFUFROLRTX6TYTHAVCNFSM6AAAAAA5ZY7M4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGU2TONRTHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Are you interest in the source code for using Luxor to draw a graph, so that you can include the source code for Luxor Documentation?
Here is what the drawing looks like (see attached file)
The text was updated successfully, but these errors were encountered: