Skip to content
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

Closed
StevenSiew opened this issue Oct 10, 2023 · 7 comments
Closed
Labels

Comments

@StevenSiew
Copy link

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)

Image027

@cormullion
Copy link
Member

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!

@StevenSiew
Copy link
Author

StevenSiew commented Oct 10, 2023 via email

@StevenSiew
Copy link
Author

StevenSiew commented Oct 10, 2023

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

LuxorGraphDemo.txt

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.

@cormullion
Copy link
Member

Thanks, I'll add it for the next release.

@StevenSiew
Copy link
Author

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.

@cormullion
Copy link
Member

Cool, and thanks. If you want to make further changes, you can now make a Pull Request! - the code is in data/gallery/ now, and the graphic will be visible in the latest docs build once Github gets round to deploying them (which takes about an hour or more these days).

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.

@StevenSiew
Copy link
Author

StevenSiew commented Apr 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants