# Latest

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

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

**Page:** 944

---

## [3 dimensional arrays](https://discourse.julialang.org/t/3-dimensional-arrays/86295)

<div class="topic-metadata">

**Author:** [@Alina-Elena](https://discourse.julialang.org/u/Alina-Elena)\
**Replies:** 3\
**Last updated:** [August 25, 2022, 12:27am UTC](https://discourse.julialang.org/t/3-dimensional-arrays/86295 "2022-08-25T00:27:18Z")

</div>

Hi, I am new to Julia and I am attempting to figure out 3 dimensional arrays. The task at hand is to create a new 3-dimensional array that contains a 10x7x2 matrix in the first column of the third dimension and another 1…

---

## [Stop Criteria using JuMP with Gurobi when find the first feasible solution](https://discourse.julialang.org/t/stop-criteria-using-jump-with-gurobi-when-find-the-first-feasible-solution/86262)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 3\
**Last updated:** [August 25, 2022, 12:12am UTC](https://discourse.julialang.org/t/stop-criteria-using-jump-with-gurobi-when-find-the-first-feasible-solution/86262 "2022-08-25T00:12:02Z")

</div>

Hello! I have a MILP problem and I am using Gurobi solver through JuMP in Julia Language. I want to stop the model run when the solver find the first feasible solution. Is there a way to set the stop criteria with this c…

---

## [Constraint to hold on some region](https://discourse.julialang.org/t/constraint-to-hold-on-some-region/86261)

<div class="topic-metadata">

**Author:** [@irezvyakova](https://discourse.julialang.org/u/irezvyakova)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 9:53pm UTC](https://discourse.julialang.org/t/constraint-to-hold-on-some-region/86261 "2022-08-24T21:53:06Z")

</div>

Hi, I am solving an optimization problem of the following interface: find max A such that x^A + y \< = 100 for all 0 \<= x \<= y \<= 1 How can I write the following type of constraint in JuMP? And how it is better to de…

---

## [Is there a way to De-Broadcast?](https://discourse.julialang.org/t/is-there-a-way-to-de-broadcast/86281)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 4\
**Last updated:** [August 24, 2022, 9:17pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-de-broadcast/86281 "2022-08-24T21:17:30Z")

</div>

I have come across cases of functions (e.g. the functions in Splines2, and elsewhere) where vectors are required as inputs, and where these same functions fail for scalar input (where conversion to/from 1-dim vector is r…

---

## [Want to add new column from string but df\[!,field\_in\] = "test" not working](https://discourse.julialang.org/t/want-to-add-new-column-from-string-but-df-field-in-test-not-working/86227)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 12\
**Last updated:** [August 24, 2022, 8:30pm UTC](https://discourse.julialang.org/t/want-to-add-new-column-from-string-but-df-field-in-test-not-working/86227 "2022-08-24T20:30:49Z")

</div>

thought I’d try out adding a new column to a database from a string but something I thought should work isn’t? using DataFrames df = DataFrame() field\_in = "top\_level" payload = "new\_one" df\[!,field\_in\] = payload I g…

---

## [About @assume\_effects](https://discourse.julialang.org/t/about-assume-effects/84668)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 10\
**Last updated:** [August 24, 2022, 6:56pm UTC](https://discourse.julialang.org/t/about-assume-effects/84668 "2022-08-24T18:56:22Z")

</div>

On first reading base/expr.jl (lines 382+ in latest) which documents the effects that Base.@assume\_effects currently recognizes, I understood this: :nothrow is safe for functions that do not throw, nor call nontrivial s…

---

## [Assigning to a getter function](https://discourse.julialang.org/t/assigning-to-a-getter-function/86278)

<div class="topic-metadata">

**Author:** [@StackEnjoyer](https://discourse.julialang.org/u/StackEnjoyer)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 6:09pm UTC](https://discourse.julialang.org/t/assigning-to-a-getter-function/86278 "2022-08-24T18:09:25Z")

</div>

Getter and setter functions Recently I stumbled on some interesting behaviour when using a “getter”-like function in combination with broadcasting calls. For the sake of argument lets assume: abstract type AbstractPoint…

---

## [How to free ownership of the memory](https://discourse.julialang.org/t/how-to-free-ownership-of-the-memory/86234)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 11\
**Last updated:** [August 24, 2022, 5:31pm UTC](https://discourse.julialang.org/t/how-to-free-ownership-of-the-memory/86234 "2022-08-24T17:31:28Z")

</div>

In the docs explaining the method of “unsafe\_wrap(Array, pointer::Ptr{T}, dims; own = false)”, It says that “… own optionally specifies whether Julia should take ownership of the memory, calling free on the pointer when …

---

## [Plotting functions with keyword arguments](https://discourse.julialang.org/t/plotting-functions-with-keyword-arguments/86270)

<div class="topic-metadata">

**Author:** [@CIJ](https://discourse.julialang.org/u/CIJ)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 4:49pm UTC](https://discourse.julialang.org/t/plotting-functions-with-keyword-arguments/86270 "2022-08-24T16:49:20Z")

</div>

I define a simple function: my\_line(x;m=1,b=0)=m\*x+b I plot my simple function: plot(my\_line,-10,10,framestyle=:origin) Great, no problem. Now I want to change a keyword parameter in my\_line, m=-1. How do I do this…

---

## [Plots.heatmap negative axis bug](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:49pm UTC](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268 "2022-08-24T15:49:04Z")

</div>

Ever notice how if you put values for the x-axis or y-axis that start positive and go negative, the heatmap can’t make the plot. FF=rand(10,20) Plots.heatmap(1:20,1:10,FF) # What it should look like Plots.heatmap(1:20…

---

## [Vcat broadcast to all columns?](https://discourse.julialang.org/t/vcat-broadcast-to-all-columns/86178)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 49\
**Last updated:** [August 24, 2022, 3:32pm UTC](https://discourse.julialang.org/t/vcat-broadcast-to-all-columns/86178 "2022-08-24T15:32:33Z")

</div>

In MATLAB, if I write x(end+1,:) = 1, it will concatenate a row of ones to the bottom of the matrix x. I haven’t found a better way of doing this in Julia than x = vcat(x, ones(typeof(x\[1\]), 1, size(x, 2))). An issue is …

---

## [Could SciML benefit from a DifferentiationProblem and solvers with caches?](https://discourse.julialang.org/t/could-sciml-benefit-from-a-differentiationproblem-and-solvers-with-caches/86267)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:06pm UTC](https://discourse.julialang.org/t/could-sciml-benefit-from-a-differentiationproblem-and-solvers-with-caches/86267 "2022-08-24T15:06:09Z")

</div>

I’ve been using SciML with great success for over a year now. I’m a very big fan. I hope this doesn’t seem rude, but I have 2 propositions which would improve SciML imo. I noticed that my main struggle is calculating d…

---

## [\[ANN\] MultilayerGraphs.jl: A Package to Construct, Handle and Analyse Multilayer Graphs](https://discourse.julialang.org/t/ann-multilayergraphs-jl-a-package-to-construct-handle-and-analyse-multilayer-graphs/85988)

<div class="topic-metadata">

**Author:** [@InPhyT](https://discourse.julialang.org/u/InPhyT)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 2:47pm UTC](https://discourse.julialang.org/t/ann-multilayergraphs-jl-a-package-to-construct-handle-and-analyse-multilayer-graphs/85988 "2022-08-24T14:47:43Z")

</div>

We are thrilled to announce MultilayerGraphs.jl: a Julia package for the construction, manipulation and analysis of multilayer graphs extending Graphs.jl. MultilayerGraphs.jl provides two custom types, MultilayerGraph a…

---

## [ForwardDiff.jl: ERROR: LoadError: MethodError: no method matching Float64(::ForwardDiff.Dual{ForwardDiff.Tag{Zygote.var"#104#105"{var"#f#1"}, Float64}, Float64, 1})](https://discourse.julialang.org/t/forwarddiff-jl-error-loaderror-methoderror-no-method-matching-float64-forwarddiff-dual-forwarddiff-tag-zygote-var-104-105-var-f-1-float64-float64-1/86175)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 2:34pm UTC](https://discourse.julialang.org/t/forwarddiff-jl-error-loaderror-methoderror-no-method-matching-float64-forwarddiff-dual-forwarddiff-tag-zygote-var-104-105-var-f-1-float64-float64-1/86175 "2022-08-24T14:34:57Z")

</div>

I had a lot of problems with ForwardDiff. I used Zygote to do automatic differential calculations before, so I didn’t know much about ForwardDiff. My original intention was to use Zygote to achieve the gradient of gradie…

---

## [Why do font sizes change with dpi in Plots?](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 2:18pm UTC](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220 "2022-08-24T14:18:48Z")

</div>

I would like to save plots as .png files at a certain dpi resolution, import into MS Word, then set the width of the image to the correct length according to the dpi setting. However, changing the dpi with Plots.jl in 3 …

---

## [Proper way of organizing code into subpackages](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835)

<div class="topic-metadata">

**Author:** [@fengkehh](https://discourse.julialang.org/u/fengkehh)\
**Replies:** 48\
**Last updated:** [August 24, 2022, 2:04pm UTC](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835 "2022-08-24T14:04:07Z")

</div>

Hi all, I am in the process of converting a fairly complicated proprietary simulation model that I wrote in Python to Julia 1.5.3. The code is broken into around 20 different sub packages on the file system by their pur…

---

## [Escaped sequences in \`SubstitutionString\`s](https://discourse.julialang.org/t/escaped-sequences-in-substitutionstring-s/86252)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 4\
**Last updated:** [August 24, 2022, 11:58am UTC](https://discourse.julialang.org/t/escaped-sequences-in-substitutionstring-s/86252 "2022-08-24T11:58:45Z")

</div>

Hi! I tried to create a substiution string with Base.SubstistutionString() that contains an escaped sequence (\\s), but, as expected, it does not work, since the relevant section in the docu says that: SubstitutionStrin…

---

## [GPU performance problem of locally connected layer with Tullio](https://discourse.julialang.org/t/gpu-performance-problem-of-locally-connected-layer-with-tullio/85469)

<div class="topic-metadata">

**Author:** [@Rasmus\_Hoier](https://discourse.julialang.org/u/Rasmus_Hoier)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 8:01am UTC](https://discourse.julialang.org/t/gpu-performance-problem-of-locally-connected-layer-with-tullio/85469 "2022-08-23T08:01:34Z")

</div>

I am using Tullio.jl to implement a locally connected layer, which is like a convolutional layer except there isn’t any weight sharing. I found Tullio very useful for this task, but unfortunately there is a large gap in …

---

## [Introducing Julia to experienced developers](https://discourse.julialang.org/t/introducing-julia-to-experienced-developers/86240)

<div class="topic-metadata">

**Author:** [@Fabien\_T](https://discourse.julialang.org/u/Fabien_T)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 11:41am UTC](https://discourse.julialang.org/t/introducing-julia-to-experienced-developers/86240 "2022-08-24T11:41:19Z")

</div>

I will present Julia to a small audience of experienced developers. I already know some of the things I want to talk about (workflows, things that I like about Julia). I also want to hear what others have to say on the s…

---

## [Removing the first index along N-1 dimensions of an Array](https://discourse.julialang.org/t/removing-the-first-index-along-n-1-dimensions-of-an-array/86246)

<div class="topic-metadata">

**Author:** [@Luis\_Calderon](https://discourse.julialang.org/u/Luis_Calderon)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 11:20am UTC](https://discourse.julialang.org/t/removing-the-first-index-along-n-1-dimensions-of-an-array/86246 "2022-08-24T11:20:44Z")

</div>

Dear Julia Community, This is my first time posting, so I hope I meet the standards put in place. Thank you for all of this btw!! Problem: Let me illustrate with an example. For a 3D array, I’d like to remove any compo…

---

## [Visualization attractors DynamicalSystems.jl](https://discourse.julialang.org/t/visualization-attractors-dynamicalsystems-jl/86247)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [August 24, 2022, 8:25am UTC](https://discourse.julialang.org/t/visualization-attractors-dynamicalsystems-jl/86247 "2022-08-24T08:25:03Z")

</div>

Is it possible to construct an attractor not in the form of points, but in the form of a continuous curve? I tried to do it and got this result. The curve is not closed due to incorrect visualization or is it becaus…

---

## [Can't open Julia Repl on Linux HPC server](https://discourse.julialang.org/t/cant-open-julia-repl-on-linux-hpc-server/86245)

<div class="topic-metadata">

**Author:** [@Endeavour](https://discourse.julialang.org/u/Endeavour)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 9:25am UTC](https://discourse.julialang.org/t/cant-open-julia-repl-on-linux-hpc-server/86245 "2022-08-24T09:25:49Z")

</div>

Hi! I wish to install Julia on a HPC server locally on my folder.I downloaded the tar file & tried to run the ./julia that is in the bin directory inside julia-1.8.0 . I get a prompt like this. It remain stuck there …

---

## [Why isn't getproperty defined for Dictionaries?](https://discourse.julialang.org/t/why-isnt-getproperty-defined-for-dictionaries/85233)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 11\
**Last updated:** [August 24, 2022, 5:35am UTC](https://discourse.julialang.org/t/why-isnt-getproperty-defined-for-dictionaries/85233 "2022-08-24T05:35:29Z")

</div>

It would be convenient to have the ability to retrieve Dict values with dot syntax. Seems like methods could be added to getproperty for Dict{String, \<:Any} and Dict{Symbol, \<:Any} so that values could be accessed the sa…

---

## [Adding Julia meaning to FAQ](https://discourse.julialang.org/t/adding-julia-meaning-to-faq/86174)

<div class="topic-metadata">

**Author:** [@Nav](https://discourse.julialang.org/u/Nav)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 5:19am UTC](https://discourse.julialang.org/t/adding-julia-meaning-to-faq/86174 "2022-08-24T05:19:19Z")

</div>

For anyone new to Julia, a major question in their mind is the origin story of the name “Julia” and the logo design. I found this about the logo and a casual/flippant mention of “Jeff’s Uncommon Lisp Is Automated” being…

---

## [Make\_subplots(): Two rows, One column](https://discourse.julialang.org/t/make-subplots-two-rows-one-column/86179)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 1:14am UTC](https://discourse.julialang.org/t/make-subplots-two-rows-one-column/86179 "2022-08-24T01:14:42Z")

</div>

Yesterday it gave me an headache, why I can not plot two figures on top of each other, the problem is related to the topic: how-to-create-a-2x1-array. Here is my example: using PlotlyJS hdl\_trace1 = scatter(x=\[1, 2\]…

---

## [Is there a way to hide the boxplots names on the x axis?](https://discourse.julialang.org/t/is-there-a-way-to-hide-the-boxplots-names-on-the-x-axis/86223)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 1:09am UTC](https://discourse.julialang.org/t/is-there-a-way-to-hide-the-boxplots-names-on-the-x-axis/86223 "2022-08-24T01:09:00Z")

</div>

Hi, I was wondering if there was a way to hide the names of each boxplots using StatsPlots grouped boxplots. I looked into both Plots and StatsPlots documentation, but I couldn’t find an argument atribute for it. Here’s…

---

## [Missing libarpack on Mac M1](https://discourse.julialang.org/t/missing-libarpack-on-mac-m1/86167)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 12:06am UTC](https://discourse.julialang.org/t/missing-libarpack-on-mac-m1/86167 "2022-08-24T00:06:15Z")

</div>

My friend has a new toy, Mac M1, and wants to run one of the codes that I wrote for him. Arpack is needed for eigs, but the machine chokes on it: missing libarpack. Julia 1.8… Is there a trick, or are we out of luck?

---

## [Help with updating fortran wrapper](https://discourse.julialang.org/t/help-with-updating-fortran-wrapper/86221)

<div class="topic-metadata">

**Author:** [@JackDunnNZ](https://discourse.julialang.org/u/JackDunnNZ)\
**Replies:** 2\
**Last updated:** [August 23, 2022, 10:16pm UTC](https://discourse.julialang.org/t/help-with-updating-fortran-wrapper/86221 "2022-08-23T22:16:14Z")

</div>

I maintain the GLMNet.jl package, which wraps the fortran internals of the glmnet R package. This fortran dependency is shipped as glmnet\_jll, and currently uses the version built here This version of the fortran code d…

---

## [Creating a Julia Community Fund!](https://discourse.julialang.org/t/creating-a-julia-community-fund/86225)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [August 23, 2022, 9:43pm UTC](https://discourse.julialang.org/t/creating-a-julia-community-fund/86225 "2022-08-23T21:43:02Z")

</div>

Hi all! As we are a few weeks out from JuliaCon, I wanted to share news on an initiative discussed at JuliaCon: starting a community fund to provide. The goal of this fund is to support individuals or groups lacking acc…

---

## [Plot, linewidth in legend](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 8:14pm UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010 "2022-08-23T20:14:44Z")

</div>

Hello When I have several lines on a plot, the legend is hard to read. The linewidth used in the legend is thin even when it is thick in the plot. Would it be possible to increase the linewidth used in a legend (to ma…

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

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