# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1037

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

**Page:** 1038

---

## [Specify colors in a Gadfly boxplot](https://discourse.julialang.org/t/specify-colors-in-a-gadfly-boxplot/81110)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 1\
**Last updated:** [May 17, 2022, 7:47pm UTC](https://discourse.julialang.org/t/specify-colors-in-a-gadfly-boxplot/81110 "2022-05-17T19:47:24Z")

</div>

I am trying to reproduce this Seaborn plot using Gadfly. The code I have so far is: using CSV, DataFrames, Gadfly download("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/tips.csv", "tips.csv") tips = D…

---

## [How to perform a reduction on wrappers of StaticArrays?](https://discourse.julialang.org/t/how-to-perform-a-reduction-on-wrappers-of-staticarrays/81209)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 4:08pm UTC](https://discourse.julialang.org/t/how-to-perform-a-reduction-on-wrappers-of-staticarrays/81209 "2022-05-17T16:08:34Z")

</div>

The axes of a reduced array are computed using Base.reduced\_indices. There seems to be a fundamental limitation here, that Base.reduced\_indices expects the axis types to remain unchanged. However, given that the size of …

---

## [Zero() and TwicePrecision](https://discourse.julialang.org/t/zero-and-twiceprecision/81208)

<div class="topic-metadata">

**Author:** [@denshd](https://discourse.julialang.org/u/denshd)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 4:13pm UTC](https://discourse.julialang.org/t/zero-and-twiceprecision/81208 "2022-05-17T16:13:16Z")

</div>

Hello! I’ve recently found a weird behaviour of StepLenRange. Consider: N = 10 faces = range(start=0, stop=1, length=(N + 1)) cells = range(start=(0 + faces.step), step=faces.step, length=N) On my computer (julia v.1.7…

---

## [ParallelStencil works with Threads but not with CUDA](https://discourse.julialang.org/t/parallelstencil-works-with-threads-but-not-with-cuda/78927)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 6\
**Last updated:** [May 17, 2022, 5:40pm UTC](https://discourse.julialang.org/t/parallelstencil-works-with-threads-but-not-with-cuda/78927 "2022-05-17T17:40:30Z")

</div>

Hellos I have a code of Edge Detection using ParallelStencil. The algorithm is basic, it just compares one pixel to its left and bottom neighbors, if their values are above one threshold, I fill the image(matrix) with …

---

## [Reducing Genie latency](https://discourse.julialang.org/t/reducing-genie-latency/60550)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 5:22pm UTC](https://discourse.julialang.org/t/reducing-genie-latency/60550 "2022-05-17T17:22:49Z")

</div>

After running git clone https://github.com/GenieFramework/Genie.jl.git cd Genie.jl I run GENIE\_ENV=prod julia --project=. and \]instantiate. Then I can run the web server. julia\> using Genie; route(()-\>"hello world",…

---

## [A problem of plot](https://discourse.julialang.org/t/a-problem-of-plot/81193)

<div class="topic-metadata">

**Author:** [@wangpuming](https://discourse.julialang.org/u/wangpuming)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 4:32pm UTC](https://discourse.julialang.org/t/a-problem-of-plot/81193 "2022-05-17T16:32:57Z")

</div>

I ran the following code and got this problem.How can I solve it. a=\[2,3,4,5,6\] plot(a) SystemError: opening file “C:\\Users\\王埔铭\\AppData\\Local\\Temp\\jl\_TnSmfa6ko7.png”: No such file or directory systemerror(::String, ::…

---

## [How to know the long time behaviour of system of differential equations?](https://discourse.julialang.org/t/how-to-know-the-long-time-behaviour-of-system-of-differential-equations/81148)

<div class="topic-metadata">

**Author:** [@Gerardo\_Suarez](https://discourse.julialang.org/u/Gerardo_Suarez)\
**Replies:** 4\
**Last updated:** [May 17, 2022, 4:24pm UTC](https://discourse.julialang.org/t/how-to-know-the-long-time-behaviour-of-system-of-differential-equations/81148 "2022-05-17T16:24:21Z")

</div>

Hi, I’ve been working with this system of differential equations function JJ!(du,u,p,t) I,g=p du\[1\] = - gu\[1\] - 2u\[3\] + I du\[2\] = -g\*u\[2\] + u\[1\]u\[3\] du\[3\] = -gu\[3\] +(1 -u\[2\])\*u\[1\] end I solve it using the Differen…

---

## [Delimited files](https://discourse.julialang.org/t/delimited-files/81138)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 5\
**Last updated:** [May 17, 2022, 4:09pm UTC](https://discourse.julialang.org/t/delimited-files/81138 "2022-05-17T16:09:29Z")

</div>

\#Say I have data in the following format v = \[(1, 0.1, \[1, 2, 3\]), (2, 0.2, \[3,4,5\])\] #I can write it to a delimited file using using DelimitedFiles open("testdlm.csv", "w") do io writedlm(io, v) end # The co…

---

## [How to add significance stars to a Plotly boxplot](https://discourse.julialang.org/t/how-to-add-significance-stars-to-a-plotly-boxplot/81170)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 3:30pm UTC](https://discourse.julialang.org/t/how-to-add-significance-stars-to-a-plotly-boxplot/81170 "2022-05-17T15:30:15Z")

</div>

Hi all, I have the following boxplot that I made with Plotly, and I was wondering if there was a general way of adding the significance asterisks above them? I have already done the statistic test, so I only have to add …

---

## [Coupling PDEs to Agents.jl](https://discourse.julialang.org/t/coupling-pdes-to-agents-jl/80977)

<div class="topic-metadata">

**Author:** [@Sahil\_Kulkarni](https://discourse.julialang.org/u/Sahil_Kulkarni)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 3:09pm UTC](https://discourse.julialang.org/t/coupling-pdes-to-agents-jl/80977 "2022-05-17T15:09:41Z")

</div>

I want to couple PDEs to with ABMs, on the website of Agents.jl, there is a tutorial that explains how to integrate ODEs with Agents, I was wondering if I discretize a PDE with DiffEqOperators.jl and then solve the remai…

---

## [Largest software project(s) in Julia](https://discourse.julialang.org/t/largest-software-project-s-in-julia/81137)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 6\
**Last updated:** [May 17, 2022, 2:35pm UTC](https://discourse.julialang.org/t/largest-software-project-s-in-julia/81137 "2022-05-17T14:35:07Z")

</div>

Hello, I order to understand the problematic of use of the Julia language for very large software project (\>100,000 code statements, \>100 developers), I would like to know which is the largest project or which are the l…

---

## [NCDatasets precompile error](https://discourse.julialang.org/t/ncdatasets-precompile-error/81132)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 8\
**Last updated:** [May 17, 2022, 1:12pm UTC](https://discourse.julialang.org/t/ncdatasets-precompile-error/81132 "2022-05-17T13:12:09Z")

</div>

pkg\> add NCDatasets gave an error message 1 dependency errored. To see a full report either run import Pkg; Pkg.precompile(). So, I did import Pkg; Pkg.precompile() and got the messages at the bottom. I use macOS Catal…

---

## [Typeof(π+1) is not Irrational](https://discourse.julialang.org/t/typeof-1-is-not-irrational/81186)

<div class="topic-metadata">

**Author:** [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 11:44am UTC](https://discourse.julialang.org/t/typeof-1-is-not-irrational/81186 "2022-05-17T11:44:04Z")

</div>

I have not used irrational numbers in Julia so far and was surprised to discover that while π is indeed Irrational, π+1 is Float64. I would like to understand why.

---

## [How to create a new window after closing the first one](https://discourse.julialang.org/t/how-to-create-a-new-window-after-closing-the-first-one/81187)

<div class="topic-metadata">

**Author:** [@Rossati](https://discourse.julialang.org/u/Rossati)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 10:03am UTC](https://discourse.julialang.org/t/how-to-create-a-new-window-after-closing-the-first-one/81187 "2022-05-17T10:03:11Z")

</div>

Hi I create a window with Gtk widgets where I choose from combo another window. The window is not created and Julia crash: FATAL ERROR: Gtk state corrupted by error thrown in a callback: ERROR: AssertionError: g\_stack…

---

## [Makie: text coordinates relative to the edges of the Axis](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 10:25am UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102 "2022-05-17T10:25:41Z")

</div>

Hello, In Matplotlib, it is possible to introduce text in the figures relative to the edges of the axis and not depending on the size of the particular plot you have. For example, you could place a text at (0.1, 0.1), w…

---

## [Gradual increasing of step size for a range of values](https://discourse.julialang.org/t/gradual-increasing-of-step-size-for-a-range-of-values/81152)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 10\
**Last updated:** [May 17, 2022, 10:01am UTC](https://discourse.julialang.org/t/gradual-increasing-of-step-size-for-a-range-of-values/81152 "2022-05-17T10:01:59Z")

</div>

Hi, I want to create an array of values ranging from 1 to 5000. For this, I use LinRange(0, 5000, 200). However, for my purpose, I need more points for the lower regime compared to the higher ones. For this I tried, par…

---

## [\[ANN\] ChaChaCiphers.jl: fast cryptographic RNG and stream ciphers](https://discourse.julialang.org/t/ann-chachaciphers-jl-fast-cryptographic-rng-and-stream-ciphers/81069)

<div class="topic-metadata">

**Author:** [@kernelmethod](https://discourse.julialang.org/u/kernelmethod)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 9:37am UTC](https://discourse.julialang.org/t/ann-chachaciphers-jl-fast-cryptographic-rng-and-stream-ciphers/81069 "2022-05-17T09:37:49Z")

</div>

ChaChaCiphers.jl I’m happy to announce ChaChaCiphers.jl, a pure-Julia implementation of the ChaCha stream cipher family. This package aims to provide fast, cryptographically-secure, and reproducible random number gener…

---

## [Memory issues generating a search space from protein sequences](https://discourse.julialang.org/t/memory-issues-generating-a-search-space-from-protein-sequences/80860)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 20\
**Last updated:** [May 17, 2022, 9:02am UTC](https://discourse.julialang.org/t/memory-issues-generating-a-search-space-from-protein-sequences/80860 "2022-05-17T09:02:25Z")

</div>

Hi, I wrote two functions in order to generate a peptide search space from protein sequences. In the end, I need a dictionary that tells me in which protein I can find a certain peptide in. Now I have two questions ab…

---

## [Rank of matrix on Z2 field](https://discourse.julialang.org/t/rank-of-matrix-on-z2-field/81078)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 12\
**Last updated:** [May 17, 2022, 8:56am UTC](https://discourse.julialang.org/t/rank-of-matrix-on-z2-field/81078 "2022-05-17T08:56:41Z")

</div>

Hi Suppose I have a symmetric matrix defined on the Z2 field {0,1}. I want to calculate its rank. Do we have any function to do this? Thanks

---

## [How to minimize space between colorbar and Axis, with aspect=DataAspect()](https://discourse.julialang.org/t/how-to-minimize-space-between-colorbar-and-axis-with-aspect-dataaspect/81167)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 4\
**Last updated:** [May 17, 2022, 8:31am UTC](https://discourse.julialang.org/t/how-to-minimize-space-between-colorbar-and-axis-with-aspect-dataaspect/81167 "2022-05-17T08:31:33Z")

</div>

let fig = Figure(resolution=(700,300)) ax = Axis(fig\[1, 1\]; aspect=DataAspect()) lines!(ax, Circle(Point2f(0, 0), 1)) lines!(ax, Circle(Point2f(0, 1), 1)) Colorbar(fig\[1, 2\]) resize\_to\_layout!(fig) fig end result…

---

## [Slightly weird LaTeX characters in Makie plots](https://discourse.julialang.org/t/slightly-weird-latex-characters-in-makie-plots/81181)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 7:57am UTC](https://discourse.julialang.org/t/slightly-weird-latex-characters-in-makie-plots/81181 "2022-05-17T07:57:27Z")

</div>

Hello, I would like to point out a strange behaviour I started to notice when using LaTeX strings in Makie plots. This issue might seem subtle, and I do not know how easy a solution could be, but I think raising it is w…

---

## [DiffEqCallbacks' StepSizeLimiter and Dual numbers](https://discourse.julialang.org/t/diffeqcallbacks-stepsizelimiter-and-dual-numbers/62197)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 7:56am UTC](https://discourse.julialang.org/t/diffeqcallbacks-stepsizelimiter-and-dual-numbers/62197 "2022-05-17T07:56:00Z")

</div>

I am trying to use GalacticOptim to run an optimization and I am using GalacticOptim.AutoForwardDiff() to generate the gradients and the run an optimizer over my objective function. My objective function contains a model…

---

## [Conventional name for an optional workspace keyword argument](https://discourse.julialang.org/t/conventional-name-for-an-optional-workspace-keyword-argument/81172)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 6:04am UTC](https://discourse.julialang.org/t/conventional-name-for-an-optional-workspace-keyword-argument/81172 "2022-05-17T06:04:06Z")

</div>

I have a function sort! that operates out of place and accepts an optional workspace vector as a keyword argument for performance reasons. Is there a conventional name for this argument? y = similar(first(x)) for xi in …

---

## [Whitespace in layout in Makie](https://discourse.julialang.org/t/whitespace-in-layout-in-makie/59657)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 5\
**Last updated:** [May 17, 2022, 5:38am UTC](https://discourse.julialang.org/t/whitespace-in-layout-in-makie/59657 "2022-05-17T05:38:39Z")

</div>

I have a fairly involved layout, and I can’t see how to get the whitespace to be used up, while not forcing some figures to get pushed into others. If I make the resolution height smaller, I get overlap of rows, even tho…

---

## [How to add a linear constraint to optimize() using optim.jl?](https://discourse.julialang.org/t/how-to-add-a-linear-constraint-to-optimize-using-optim-jl/81176)

<div class="topic-metadata">

**Author:** [@jfanecon](https://discourse.julialang.org/u/jfanecon)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 4:44am UTC](https://discourse.julialang.org/t/how-to-add-a-linear-constraint-to-optimize-using-optim-jl/81176 "2022-05-17T04:44:14Z")

</div>

Hi, I wanted to add a linear constraint to a maximization problem using optim.jl. It is a linear constraint and cannot be done by box constrain. As for algorithms, I will use both gradient free and Gradient required met…

---

## [Setting start values for only some indicies of a BilevelJuMP variable](https://discourse.julialang.org/t/setting-start-values-for-only-some-indicies-of-a-bileveljump-variable/81160)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [May 17, 2022, 2:17am UTC](https://discourse.julialang.org/t/setting-start-values-for-only-some-indicies-of-a-bileveljump-variable/81160 "2022-05-17T02:17:00Z")

</div>

For the following BilevelJumP model, I want to set the start value for variable x 's even indices: using JuMP, BilevelJuMP, Gurobi a = \[1.0, 0.0, 1.0, 1.0, 0.0, 0.0\] model = BilevelModel(Gurobi.Optimizer, mode = Bilev…

---

## [MethodError: no method matching adjoint(::typeof(f))](https://discourse.julialang.org/t/methoderror-no-method-matching-adjoint-typeof-f/81155)

<div class="topic-metadata">

**Author:** [@MoKent](https://discourse.julialang.org/u/MoKent)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 1:27am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-adjoint-typeof-f/81155 "2022-05-17T01:27:21Z")

</div>

I’m trying to optimize quadratic function to learn julia as below, but dind’t work. Can anyone tell me what is wrong? input using PyPlot using ForwardDiff x\_opt = 0.50 f(x) = -2(x - x\_opt)^2 xs = range(-3, 3, length …

---

## [Pluto "Process Exited" due to segmentation fault on macos](https://discourse.julialang.org/t/pluto-process-exited-due-to-segmentation-fault-on-macos/74558)

<div class="topic-metadata">

**Author:** [@iskyd](https://discourse.julialang.org/u/iskyd)\
**Replies:** 5\
**Last updated:** [May 16, 2022, 11:37pm UTC](https://discourse.julialang.org/t/pluto-process-exited-due-to-segmentation-fault-on-macos/74558 "2022-05-16T23:37:19Z")

</div>

Everytime I restart the same notebook I got “Process Exited - Restart”. In the log I found From worker 2: signal (11): Segmentation fault: 11 … Worker 2 terminated. Unhandled Task ERROR: EOFError: read end of file …

---

## [Trying to create my own package; one dependency asks to be installed manually?](https://discourse.julialang.org/t/trying-to-create-my-own-package-one-dependency-asks-to-be-installed-manually/81164)

<div class="topic-metadata">

**Author:** [@johnabs](https://discourse.julialang.org/u/johnabs)\
**Replies:** 2\
**Last updated:** [May 16, 2022, 11:12pm UTC](https://discourse.julialang.org/t/trying-to-create-my-own-package-one-dependency-asks-to-be-installed-manually/81164 "2022-05-16T23:12:33Z")

</div>

Hi all, I’m hoping to finalize a package for deployment soon, but when I try to install it from github, everything works except for the Graphs.jl dependency. Weirdly enough, it does install Graphs, but when I try to lo…

---

## [Segmentation Fault when using Plots](https://discourse.julialang.org/t/segmentation-fault-when-using-plots/45150)

<div class="topic-metadata">

**Author:** [@drarnau](https://discourse.julialang.org/u/drarnau)\
**Replies:** 4\
**Last updated:** [May 16, 2022, 10:38pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-using-plots/45150 "2022-05-16T22:38:13Z")

</div>

using Plots \[ Info: Recompiling stale cache file /home/arnau/.julia/compiled/v1.1/Plots/ld3vC.ji for Plots \[91a5bcdd-55d7-5caf-9e0b-520d859cae80\] signal (11): Segmentation fault in expression starting at /home/arnau/.ju…

[Previous page](https://discourse.julialang.org/latest.md?page=1036)

[Next page](https://discourse.julialang.org/latest.md?page=1038)
