# \#luxor

**URL:** https://discourse.julialang.org/tag/luxor/578.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Simpler Yin-Yang?](https://discourse.julialang.org/t/simpler-yin-yang/134696)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 6\
**Last updated:** [December 24, 2025, 7:48am UTC](https://discourse.julialang.org/t/simpler-yin-yang/134696 "2025-12-24T07:48:08Z")

</div>

I wanted to draw the Yin-Yang symbol in Luxor.jl. Here’s what I came up with. Can this be done more idiomatic? I would have preferred the white “eye” of the black “fish” to be just a cut-out rather than over-plotting w…

---

## [Why is luxor generating 0-byte files?](https://discourse.julialang.org/t/why-is-luxor-generating-0-byte-files/132198)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 8:29pm UTC](https://discourse.julialang.org/t/why-is-luxor-generating-0-byte-files/132198 "2025-09-08T20:29:06Z")

</div>

using Luxor @svg juliacircles(150) 400 400 "test1" @png juliacircles(150) 400 400 "test2" readdir() # file size name 09/08/2025 03:40 PM 0 test1.svg 09/08/2025 03:41 PM …

---

## [Logo for the JuliaDiff organization?](https://discourse.julialang.org/t/logo-for-the-juliadiff-organization/113539)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 54\
**Last updated:** [September 26, 2024, 1:38pm UTC](https://discourse.julialang.org/t/logo-for-the-juliadiff-organization/113539 "2024-09-26T13:38:55Z")

</div>

Since JuliaCon and its avalanche of stickers are upon us, I thought it would be nice to give JuliaDiff a logo. We have one on GitHub but it’s old and not really differentiation-specific. I gave it a try with Luxor.jl, bu…

---

## [Transparent background with Luxor.jl](https://discourse.julialang.org/t/transparent-background-with-luxor-jl/114437)

<div class="topic-metadata">

**Author:** [@fatteneder](https://discourse.julialang.org/u/fatteneder)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 5:26pm UTC](https://discourse.julialang.org/t/transparent-background-with-luxor-jl/114437 "2024-05-18T17:26:05Z")

</div>

Hi. Does somebody know how I can generate a .png file with a transparent background? The docs here say that it should suffice to put background(0,0,0,0). Using the MWE from Simple examples · Luxor using Luxor @png be…

---

## [Luxor 'placeimage' with scaling](https://discourse.julialang.org/t/luxor-placeimage-with-scaling/114299)

<div class="topic-metadata">

**Author:** [@beryl](https://discourse.julialang.org/u/beryl)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 6:17pm UTC](https://discourse.julialang.org/t/luxor-placeimage-with-scaling/114299 "2024-05-15T18:17:51Z")

</div>

Hi, I think this is a rather simple question but somehow I am unable to figure this out… :sweat\_smile: So, I have some svg images where all of them have the same scales. I want to place them on some absolute coordinates…

---

## [How to directly load a JPEG image directly from URL into Luxor](https://discourse.julialang.org/t/how-to-directly-load-a-jpeg-image-directly-from-url-into-luxor/113578)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 2\
**Last updated:** [April 29, 2024, 10:34am UTC](https://discourse.julialang.org/t/how-to-directly-load-a-jpeg-image-directly-from-url-into-luxor/113578 "2024-04-29T10:34:30Z")

</div>

I have figured out how to load a PNG image directly into Luxor. My solution is crude but it works. using Luxor using HTTP dir\_temp\_name = tempname() println("dir\_temp\_name is ",dir\_temp\_name) file\_temp\_name = HTTP.downl…

---

## [Using Luxor.Table to visualize Julia 2D matrix results in transposed view](https://discourse.julialang.org/t/using-luxor-table-to-visualize-julia-2d-matrix-results-in-transposed-view/112484)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 7:34am UTC](https://discourse.julialang.org/t/using-luxor-table-to-visualize-julia-2d-matrix-results-in-transposed-view/112484 "2024-04-04T07:34:55Z")

</div>

Hi, I’m stumbling across the fact that Luxor.Table looks row-major but Julia matrices are column-major. How can I “swap” dimension indices between source matrix read access and Luxor.Table write access? using Luxor wi…

---

## [Create animation from images previously created with Javis or Luxor?](https://discourse.julialang.org/t/create-animation-from-images-previously-created-with-javis-or-luxor/111708)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 3:49pm UTC](https://discourse.julialang.org/t/create-animation-from-images-previously-created-with-javis-or-luxor/111708 "2024-03-20T15:49:46Z")

</div>

Hello All, as far as I understand creating an animation with Javis (or Luxor) always starts from the “outside” with specifying the number of frames that shall constitute the resulting animation and then calling a drawin…

---

## [Luxor.textformat() missing?](https://discourse.julialang.org/t/luxor-textformat-missing/111535)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:46pm UTC](https://discourse.julialang.org/t/luxor-textformat-missing/111535 "2024-03-12T18:46:31Z")

</div>

Hi All, I’m experimenting with Luxor and wondering whether Luxor.textformat() has been removed. It’s listed in the examples and the documentation but is missing from the alphabetical list at the end of the documentatio…

---

## [Coloring regions defined with path in Luxor](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 12:31am UTC](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863 "2024-02-28T00:31:33Z")

</div>

I am working on a new logo for the PeaceFounder project and giving Luxor a chance. So far, I have managed to get a frame in the way I want it to be (representing two interlinked elements in a rope): which is achieved…

---

## [How to preview a Luxor drawing](https://discourse.julialang.org/t/how-to-preview-a-luxor-drawing/109298)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 8\
**Last updated:** [January 26, 2024, 5:15pm UTC](https://discourse.julialang.org/t/how-to-preview-a-luxor-drawing/109298 "2024-01-26T17:15:27Z")

</div>

Hello all, I am using Julia to run simulations on a given system and in my post-processing module I plot and save the results. Also, I have implemented a Luxor drawing function named drawSystem() that shows my data in a…

---

## [Get fontsize in Luxor](https://discourse.julialang.org/t/get-fontsize-in-luxor/105084)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 3\
**Last updated:** [October 22, 2023, 3:08pm UTC](https://discourse.julialang.org/t/get-fontsize-in-luxor/105084 "2023-10-22T15:08:20Z")

</div>

How do I get the font size that has been set with the setfont function? The function get\_fontsize gives me the size that has been set with the fontsize function.

---

## [Latex in Luxor](https://discourse.julialang.org/t/latex-in-luxor/78985)

<div class="topic-metadata">

**Author:** [@marcfish](https://discourse.julialang.org/u/marcfish)\
**Replies:** 11\
**Last updated:** [October 16, 2023, 11:48pm UTC](https://discourse.julialang.org/t/latex-in-luxor/78985 "2023-10-16T23:48:45Z")

</div>

i want to text latex in luxor but it seems wrong with fonts ther is the code: using Luxor using MathTeXEngine @svg begin background("khaki") f(t) = Point(4cos(t) + 2cos(5t), 4sin(t) + 2sin(5t)) setline(15) fontsize(3…

---

## [Save animation with Luxor.jl](https://discourse.julialang.org/t/save-animation-with-luxor-jl/104861)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 12\
**Last updated:** [October 12, 2023, 10:22am UTC](https://discourse.julialang.org/t/save-animation-with-luxor-jl/104861 "2023-10-12T10:22:03Z")

</div>

Hello :blush:, I have just learned how to produce drawings and animation with Luxor.jl (Introduction to Luxor · Luxor) using Luxor.animate, Movie and frame function. However, I cannot find a way to save my animation in …

---

## [Plotting in VS Code pane](https://discourse.julialang.org/t/plotting-in-vs-code-pane/97483)

<div class="topic-metadata">

**Author:** [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Replies:** 5\
**Last updated:** [April 14, 2023, 9:56pm UTC](https://discourse.julialang.org/t/plotting-in-vs-code-pane/97483 "2023-04-14T21:56:43Z")

</div>

Creating a drawing using dimensions results in expected plotting behavior in the VS code plot pane: using Luxor, Dates dt=now() d=Drawing(400, 400, "useDimensions\_" \* Dates.format(dt, dateformat"yyyymmdd\\THHMMSS") \* ".p…

---

## [@drawsvg is missing from the Luxor package](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235)

<div class="topic-metadata">

**Author:** [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Replies:** 9\
**Last updated:** [April 10, 2023, 10:43pm UTC](https://discourse.julialang.org/t/drawsvg-is-missing-from-the-luxor-package/97235 "2023-04-10T22:43:28Z")

</div>

If I execute the code below (uncommented) in VS Code, ERROR: LoadError: UndefVarError: @drawsvg not defined. As is, it prints: @draw @eps @imagematrix @imagematrix! @layer @pdf @png @polar @setcolor\_str @svg u…

---

## [Connecting coordinate transforms in Luxor](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 9:47pm UTC](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458 "2023-01-26T21:47:30Z")

</div>

I’m working on my first project with Luxor.jl. As I understand it, Luxor maintains both a “global” coordinate system and a “local” system, and the typical workflow is to transform the local coordinates in some useful way…

---

## [Joint all layers in only one with Luxor](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798)

<div class="topic-metadata">

**Author:** [@jdavidc](https://discourse.julialang.org/u/jdavidc)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 7:35am UTC](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798 "2022-09-26T07:35:58Z")

</div>

I am doing an image pixel by pixel using Luxor.rect(), but I need to collapse all my “squares” in only one layer. I want to export the image as a vector because I need to use it as a CAD file and having many layers is a …

---

## [Luxor.jl - resize canvas?](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603)

<div class="topic-metadata">

**Author:** [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 11:22am UTC](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603 "2022-05-06T11:22:43Z")

</div>

Is there a way to resize a canvas in Luxor.jl so it includes the bounding boxes of all elements? Suppose I have the following code generating a drawing: @png begin circle(Point(200, 200), 150, :fill) end Now the cir…

---

## [Getting the boundary of fonts as points](https://discourse.julialang.org/t/getting-the-boundary-of-fonts-as-points/79114)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 8\
**Last updated:** [April 7, 2022, 4:29pm UTC](https://discourse.julialang.org/t/getting-the-boundary-of-fonts-as-points/79114 "2022-04-07T16:29:59Z")

</div>

I want to plot letters/fonts as curves, hence access to a more point-like representation. I’m looking for a way to get a point\[all pixels\] or curve\[boundary\] representation of fonts maybe normalised within a unit box, n…

---

## [Luxor linewidth scaling](https://discourse.julialang.org/t/luxor-linewidth-scaling/70022)

<div class="topic-metadata">

**Author:** [@jg-854](https://discourse.julialang.org/u/jg-854)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 10:47am UTC](https://discourse.julialang.org/t/luxor-linewidth-scaling/70022 "2021-10-19T10:47:38Z")

</div>

I am creating an application with a zoom feature. I thought to use Luxor.scale, which correctly scales my primitives (boxes, triangles etc.) but preserves the linewidth’s value. Is there any way to include the scaling of…

---

## [How to calculate bounding box of a text primitive BEFORE Luxor.Drawing()](https://discourse.julialang.org/t/how-to-calculate-bounding-box-of-a-text-primitive-before-luxor-drawing/69556)

<div class="topic-metadata">

**Author:** [@jg-854](https://discourse.julialang.org/u/jg-854)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 10:58am UTC](https://discourse.julialang.org/t/how-to-calculate-bounding-box-of-a-text-primitive-before-luxor-drawing/69556 "2021-10-11T10:58:16Z")

</div>

I want to determine the appropriate size of a drawing before calling Luxor.Drawing()… This results in needing to calculate the bounding box of all components within my drawing. Luxor provides the convenient method Boundi…

---

## [Obtaining a Julia \`Image\` from Luxor.jl](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 6:49pm UTC](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992 "2021-09-10T18:49:31Z")

</div>

At the moment I draw an Image with Luxor and load it back into an Image with using Luxor, Images, FileIO d = Luxor.Drawing(width, height, "temp.png") … Luxor.finish() load("temp.png") Is there a way to get the image ba…

---

## [How to center a text with Luxor](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [July 18, 2021, 8:22am UTC](https://discourse.julialang.org/t/how-to-center-a-text-with-luxor/55125 "2021-07-18T08:22:14Z")

</div>

I am trying to create simple images with a text made of a few digits on the center. The problem is that I need to manually offset the position, is there a way to make it “centered” in a visual sense, i.e. where the spa…

---

## [Available fonts in Luxor.jl](https://discourse.julialang.org/t/available-fonts-in-luxor-jl/64576)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 2:58pm UTC](https://discourse.julialang.org/t/available-fonts-in-luxor-jl/64576 "2021-07-13T14:58:16Z")

</div>

What are the available fonts in Luxor that can be used cross-platform? How can I make a package using Luxor that provides the same text results on different platforms? Any help is appreciated.

---

## [How do I "wrap" a table object (in Luxor) around a torus (donut)?](https://discourse.julialang.org/t/how-do-i-wrap-a-table-object-in-luxor-around-a-torus-donut/59892)

<div class="topic-metadata">

**Author:** [@AndresCasillas](https://discourse.julialang.org/u/AndresCasillas)\
**Replies:** 5\
**Last updated:** [April 28, 2021, 7:35am UTC](https://discourse.julialang.org/t/how-do-i-wrap-a-table-object-in-luxor-around-a-torus-donut/59892 "2021-04-28T07:35:41Z")

</div>

I´m currently working on a Jupyter file and with Julia version 1.5.3 on a Windows computer, using Luxor. I have an array of arrays and a function (dibujar\_matriz) which creates a table based on the entries of each array. …

---

## [For Loops in Luxor](https://discourse.julialang.org/t/for-loops-in-luxor/54197)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 20\
**Last updated:** [February 4, 2021, 5:51pm UTC](https://discourse.julialang.org/t/for-loops-in-luxor/54197 "2021-02-04T17:51:09Z")

</div>

When I create a checker pattern using the rect function, it works perfectly: @svg begin Drawing(2000,2000) background("white") sethue("black") rect(500,0,500,500,:fill) rect(1500,0,500,500,:fill) rect(0,500,500,50…

---

## [Inpolygon usage](https://discourse.julialang.org/t/inpolygon-usage/39226)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 7\
**Last updated:** [December 24, 2020, 6:15pm UTC](https://discourse.julialang.org/t/inpolygon-usage/39226 "2020-12-24T18:15:59Z")

</div>

How can we generate following Octave codes in Julia with GeometricalPredicates package xv = \[ 0.05840, 0.48375, 0.69356, 1.47478, 1.32158, ... 1.94545, 2.16477, 1.87639, 1.18218, 0.27615, ... 0.05840 \]; …

---

## [Display animation created with Luxor in jupyter notebook](https://discourse.julialang.org/t/display-animation-created-with-luxor-in-jupyter-notebook/26839)

<div class="topic-metadata">

**Author:** [@karlroyen](https://discourse.julialang.org/u/karlroyen)\
**Replies:** 2\
**Last updated:** [July 27, 2019, 6:34am UTC](https://discourse.julialang.org/t/display-animation-created-with-luxor-in-jupyter-notebook/26839 "2019-07-27T06:34:26Z")

</div>

Can I display an animation created with Luxor in a jupyter notebook? For example if I put something like the example code for animation using Colors, Luxor demo = Movie(400, 400, "test") function backdrop(scene, frame…
