# Latest

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

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

**Page:** 1470

---

## [Contourf plot with uneven axes](https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603)

<div class="topic-metadata">

**Author:** [@chaseleslie](https://discourse.julialang.org/u/chaseleslie)\
**Replies:** 1\
**Last updated:** [March 6, 2021, 3:56am UTC](https://discourse.julialang.org/t/contourf-plot-with-uneven-axes/56603 "2021-03-06T03:56:29Z")

</div>

I am trying to plot a contourf plot that has uneven axes, like so: using Plots pyplot() contourf(Float64\[k for k in 0:19\], Float64\[k for k in 0:2:38\], rand(20,20)) This produces a plot like on the left: Whereas I…

---

## [Find array elements not present in another array](https://discourse.julialang.org/t/find-array-elements-not-present-in-another-array/56323)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [March 5, 2021, 10:33pm UTC](https://discourse.julialang.org/t/find-array-elements-not-present-in-another-array/56323 "2021-03-05T22:33:21Z")

</div>

hello, I have two arrays with the elements julia\> h = unique(he.ID) 1421-element Array{String,1}: "AC\_000011" "AC\_000019" "AC\_000189" "AC\_000190" ⋮ "NC\_039209" "NC\_039212" "NC\_039213" "NC\_039236" julia\> j = u…

---

## [What are vmin and vmax?](https://discourse.julialang.org/t/what-are-vmin-and-vmax/56592)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 10:02pm UTC](https://discourse.julialang.org/t/what-are-vmin-and-vmax/56592 "2021-03-05T22:02:05Z")

</div>

What does the v in vmin and vmax stand for, in the get\_ticks function signature? What do they mean and how are they calculated?

---

## [\[ANN\] StrongArrays: arrays with strongly-typed indices](https://discourse.julialang.org/t/ann-strongarrays-arrays-with-strongly-typed-indices/56588)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 9:25pm UTC](https://discourse.julialang.org/t/ann-strongarrays-arrays-with-strongly-typed-indices/56588 "2021-03-05T21:25:52Z")

</div>

This tiny package allows defining custom array types that use type-aliases of Int as their indices. When handling a big data structure with lots of indices, this prevents you from accidentally using the wrong index. (Wel…

---

## [Is there a shorter way to write \`for m₁ in axes(M, 1), m₂ in axes(M, 2)\` in the co](https://discourse.julialang.org/t/is-there-a-shorter-way-to-write-for-m-in-axes-m-1-m-in-axes-m-2-in-the-co/56543)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 7\
**Last updated:** [March 5, 2021, 9:10pm UTC](https://discourse.julialang.org/t/is-there-a-shorter-way-to-write-for-m-in-axes-m-1-m-in-axes-m-2-in-the-co/56543 "2021-03-05T21:10:33Z")

</div>

Is there a shorter way to write for m₁ in axes(M, 1), m₂ in axes(M, 2) in the code below? m₁ and m₂ are required. let M = \[1 2 3; 4 5 6\] res = Any\[\] for m₁ in axes(M, 1), m₂ in axes(M, 2) push!(res, (M\[m₁, m₂\])) en…

---

## [Autograd in Flux](https://discourse.julialang.org/t/autograd-in-flux/56378)

<div class="topic-metadata">

**Author:** [@Khemraj\_Shukla](https://discourse.julialang.org/u/Khemraj_Shukla)\
**Replies:** 14\
**Last updated:** [March 5, 2021, 7:52pm UTC](https://discourse.julialang.org/t/autograd-in-flux/56378 "2021-03-05T19:52:47Z")

</div>

Hello All- I need to compute the gradient of output of a neural network w.r.t input. In my case output is vector and input is also vector. I was trying to use gradient routine from Flux package but it was complaing tha…

---

## [Best way to declare a structure field that could be a function or a number](https://discourse.julialang.org/t/best-way-to-declare-a-structure-field-that-could-be-a-function-or-a-number/56574)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 3\
**Last updated:** [March 5, 2021, 7:30pm UTC](https://discourse.julialang.org/t/best-way-to-declare-a-structure-field-that-could-be-a-function-or-a-number/56574 "2021-03-05T19:30:57Z")

</div>

Hello, I’m currently writing a PDE solver in julia, and I’m wrapping the inputs in a structure in order. Among these inputs is the initial condition V0 and can be either a constant or a function. My question is, what i…

---

## [How would you handle reproduction in this Agent Based Model?](https://discourse.julialang.org/t/how-would-you-handle-reproduction-in-this-agent-based-model/56442)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 8\
**Last updated:** [March 5, 2021, 7:03pm UTC](https://discourse.julialang.org/t/how-would-you-handle-reproduction-in-this-agent-based-model/56442 "2021-03-05T19:03:35Z")

</div>

Hello all, I’m building an agent-based model of avian populations in the presence of brood parasites\*. The simulation aims to recreate solution concepts from evolutionary game theory that can be found analytically using …

---

## [Signal (22): SIGABRT](https://discourse.julialang.org/t/signal-22-sigabrt/55524)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [March 5, 2021, 6:57pm UTC](https://discourse.julialang.org/t/signal-22-sigabrt/55524 "2021-03-05T18:57:50Z")

</div>

If I add Threads.@threads to a for loop in my script I get this: Assertion failed: new\_time \>= loop-\>time, file src/win/core.c, line 105 signal (22): SIGABRT in expression starting at \<the line of the function call\> cr…

---

## [Does a Terror Attack Cause Another Terror Attack? A look at Hawkes Processes in Julia](https://discourse.julialang.org/t/does-a-terror-attack-cause-another-terror-attack-a-look-at-hawkes-processes-in-julia/56578)

<div class="topic-metadata">

**Author:** [@dm13450](https://discourse.julialang.org/u/dm13450)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 6:25pm UTC](https://discourse.julialang.org/t/does-a-terror-attack-cause-another-terror-attack-a-look-at-hawkes-processes-in-julia/56578 "2021-03-05T18:25:14Z")

</div>

I’ve already posted this i n the Julia subreddit but thought I would share here. This is a blog post I’ve written based on a chapter from my PhD. http://dm13450.github.io/2021/03/02/Terror-Attacks-Hawkes-Processes.html …

---

## [UnitfulForex.jl — foreign exchange rates as Unitful.jl units](https://discourse.julialang.org/t/unitfulforex-jl-foreign-exchange-rates-as-unitful-jl-units/56572)

<div class="topic-metadata">

**Author:** [@sidpatil](https://discourse.julialang.org/u/sidpatil)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 6:05pm UTC](https://discourse.julialang.org/t/unitfulforex-jl-foreign-exchange-rates-as-unitful-jl-units/56572 "2021-03-05T18:05:24Z")

</div>

https://github.com/spatil47/UnitfulForex.jl This is a tiny script which automatically creates Unitful.jl units from foreign exchange rates published at http://exchangeratesapi.io/. I’m still quite new to Julia. I’d lik…

---

## [Image pooling](https://discourse.julialang.org/t/image-pooling/5280)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 10\
**Last updated:** [March 5, 2021, 6:00pm UTC](https://discourse.julialang.org/t/image-pooling/5280 "2021-03-05T18:00:27Z")

</div>

Is there a package that implements image pooling? In more detail: I have a big image and need to downsize it. Say my image is of size 1000x1000 and I want to bring it down to 100x100. What I want to do is tile it with …

---

## [Run full code on VSCode](https://discourse.julialang.org/t/run-full-code-on-vscode/56566)

<div class="topic-metadata">

**Author:** [@Beta\_Raddish](https://discourse.julialang.org/u/Beta_Raddish)\
**Replies:** 4\
**Last updated:** [March 5, 2021, 5:51pm UTC](https://discourse.julialang.org/t/run-full-code-on-vscode/56566 "2021-03-05T17:51:34Z")

</div>

I am still new to the community so if I got this in the wrong section I do apologise. I am using VS Code to edit my Julia programs but from what I can tell I can either run individual lines or code blocks. While these b…

---

## [Basic question, how do I concatenate several strings with a fixed delimiter?](https://discourse.julialang.org/t/basic-question-how-do-i-concatenate-several-strings-with-a-fixed-delimiter/56571)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 4:41pm UTC](https://discourse.julialang.org/t/basic-question-how-do-i-concatenate-several-strings-with-a-fixed-delimiter/56571 "2021-03-05T16:41:25Z")

</div>

basic question, how do I concatenate several strings with a fixed delimiter? Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack,…

---

## [Multidimensional Real Fast Fourier Transform](https://discourse.julialang.org/t/multidimensional-real-fast-fourier-transform/56498)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 8\
**Last updated:** [March 5, 2021, 4:14pm UTC](https://discourse.julialang.org/t/multidimensional-real-fast-fourier-transform/56498 "2021-03-05T16:14:52Z")

</div>

Hello, I’m using fourier transformations to solve a partial differential equation in two dimensions. Since performance is super important in my case and I only deal with real data, so i’m using the pre-computed plan of …

---

## [Leg = false?](https://discourse.julialang.org/t/leg-false/56523)

<div class="topic-metadata">

**Author:** [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Replies:** 4\
**Last updated:** [March 5, 2021, 3:17pm UTC](https://discourse.julialang.org/t/leg-false/56523 "2021-03-05T15:17:39Z")

</div>

Just a quick question, what does leg=false or leg=true mean, for example in the following command hline!(\[m, m+σ, m-σ\], lw=3, ls=:dash, leg=false) I tried to set leg to true and false, but can’t see any observable dif…

---

## [\[ANN\]: Gnuplot v1.1.0 - A Julia interface to gnuplot](https://discourse.julialang.org/t/ann-gnuplot-v1-1-0-a-julia-interface-to-gnuplot/37341)

<div class="topic-metadata">

**Author:** [@gcalderone](https://discourse.julialang.org/u/gcalderone)\
**Replies:** 57\
**Last updated:** [March 5, 2021, 2:50pm UTC](https://discourse.julialang.org/t/ann-gnuplot-v1-1-0-a-julia-interface-to-gnuplot/37341 "2021-03-05T14:50:23Z")

</div>

I’m glad to announce the first production ready version of Gnuplot.jl, a package to drive an external gnuplot process from Julia. The most characterizing features of Gnuplot.jl are: a carefully designed syntax, aime…

---

## [Allow for more quasar vue properties to be bound to observable parameters in the model](https://discourse.julialang.org/t/allow-for-more-quasar-vue-properties-to-be-bound-to-observable-parameters-in-the-model/56554)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 10\
**Last updated:** [March 5, 2021, 2:47pm UTC](https://discourse.julialang.org/t/allow-for-more-quasar-vue-properties-to-be-bound-to-observable-parameters-in-the-model/56554 "2021-03-05T14:47:50Z")

</div>

Hope you’re doing well @hhaensel :slight\_smile: It’s really useful to bind properties of quasar-vue components to model parameters. More specifically, how do I disable a button with an observable: button("Save", @click…

---

## [Unexpected allocations when acessing field of struct](https://discourse.julialang.org/t/unexpected-allocations-when-acessing-field-of-struct/56557)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 2\
**Last updated:** [March 5, 2021, 2:42pm UTC](https://discourse.julialang.org/t/unexpected-allocations-when-acessing-field-of-struct/56557 "2021-03-05T14:42:53Z")

</div>

Hello, I don’t understand why any of the function calls underneath allocate memory on the heap. My reasoning is that these are unmutable structs, so when the functions are called, the type of field ´a´ is known to be a…

---

## [Is this a bug, or expected behavior](https://discourse.julialang.org/t/is-this-a-bug-or-expected-behavior/56555)

<div class="topic-metadata">

**Author:** [@jonasjonker](https://discourse.julialang.org/u/jonasjonker)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 1:58pm UTC](https://discourse.julialang.org/t/is-this-a-bug-or-expected-behavior/56555 "2021-03-05T13:58:58Z")

</div>

I’m not really sure if this is a usage question, or more of a design question. I’m on a Linux system and I have a separate disk for my data called Data which is symlinked inside my home directory like this: me@my\_pc ~ …

---

## [Is there a way to make julia aware of ~ as the home directory on linux](https://discourse.julialang.org/t/is-there-a-way-to-make-julia-aware-of-as-the-home-directory-on-linux/56550)

<div class="topic-metadata">

**Author:** [@jonasjonker](https://discourse.julialang.org/u/jonasjonker)\
**Replies:** 7\
**Last updated:** [March 5, 2021, 2:00pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-make-julia-aware-of-as-the-home-directory-on-linux/56550 "2021-03-05T14:00:25Z")

</div>

I work on a Linux system, meaning that in my mind ~ means home directory. Sometimes I like to refer to a config file relative to a home folder in any (Linux) system. Which means that writing ~/.config/file.cfg would be …

---

## [Disable array print clipping in logging macro](https://discourse.julialang.org/t/disable-array-print-clipping-in-logging-macro/56552)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 1:19pm UTC](https://discourse.julialang.org/t/disable-array-print-clipping-in-logging-macro/56552 "2021-03-05T13:19:58Z")

</div>

Logging module provides a variable name and value printing function, it is very useful. julia\> a, b, c = rand(3), rand(3), rand(3); julia\> @info "" a b c ┌ Info: │ a = │ 3-element Array{Float64,1}: │ 0.4212448…

---

## [\`maximum\`, \`minimum\`, etc, with array with missing values](https://discourse.julialang.org/t/maximum-minimum-etc-with-array-with-missing-values/56549)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 12:35pm UTC](https://discourse.julialang.org/t/maximum-minimum-etc-with-array-with-missing-values/56549 "2021-03-05T12:35:30Z")

</div>

Shouldn’t these functions return the maximum, minimum, etc, disregarding missing values? julia\> x = \[ missing, 1, 2 \] 3-element Array{Union{Missing, Int64},1}: missing 1 2 julia\> maximum(x) missing julia\> minimum(…

---

## [Array indexed by enum](https://discourse.julialang.org/t/array-indexed-by-enum/56510)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 3\
**Last updated:** [March 5, 2021, 12:21pm UTC](https://discourse.julialang.org/t/array-indexed-by-enum/56510 "2021-03-05T12:21:22Z")

</div>

Quick question: is there some implementation of an array that could use an enum as an index? Or would it be straightforward to implement one? Where would I start. (Using an enum as an array index is a common thing in lan…

---

## [MAT.jl putting several tuples of variable string and variable in write()-command](https://discourse.julialang.org/t/mat-jl-putting-several-tuples-of-variable-string-and-variable-in-write-command/56542)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 10:57am UTC](https://discourse.julialang.org/t/mat-jl-putting-several-tuples-of-variable-string-and-variable-in-write-command/56542 "2021-03-05T10:57:58Z")

</div>

Hi, given are two vectors: x, y Question: can I use one write()-command to save them to a mat- file, if I would like to use specific lables? write(file\_id, "vec\_x", x) write(file\_id, "vec\_sin", y) is fine. write(fil…

---

## [\[ANN\] NearestNeighborModels v0.1.4](https://discourse.julialang.org/t/ann-nearestneighbormodels-v0-1-4/56449)

<div class="topic-metadata">

**Author:** [@samuel\_okon](https://discourse.julialang.org/u/samuel_okon)\
**Replies:** 0\
**Last updated:** [March 3, 2021, 10:47pm UTC](https://discourse.julialang.org/t/ann-nearestneighbormodels-v0-1-4/56449 "2021-03-03T22:47:47Z")

</div>

This announces the v0.1.4 release of NearestNeighborModels.jl. NearestNeighborModels.jl builds on @kristoffer.carlsson NearestNeighbors package and earlier contributions from @tlienart residing at MLJModels.jl. The pack…

---

## [\[DataFrames Question\]: Filter function parameter order](https://discourse.julialang.org/t/dataframes-question-filter-function-parameter-order/56395)

<div class="topic-metadata">

**Author:** [@citron](https://discourse.julialang.org/u/citron)\
**Replies:** 6\
**Last updated:** [March 5, 2021, 7:29am UTC](https://discourse.julialang.org/t/dataframes-question-filter-function-parameter-order/56395 "2021-03-05T07:29:20Z")

</div>

Question: This is not a technical question. Consider it esthetechnical. While all functions from the DataFrames module get a DataFrame as first parameter, why don’t “Filter” and “Map” get this treatment too ? Why filte…

---

## [Ghost Script on JuliaBinaryWrappers?](https://discourse.julialang.org/t/ghost-script-on-juliabinarywrappers/56524)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 4\
**Last updated:** [March 5, 2021, 7:14am UTC](https://discourse.julialang.org/t/ghost-script-on-juliabinarywrappers/56524 "2021-03-05T07:14:33Z")

</div>

I need to use convert from ImageMagick and ImageMagick\_jll works mostly ok, however at some point convert tries to call gs, which is not distributed with ImageMagick\_jll. Has anyone attempted to package Ghost Script on …

---

## [Edit limits](https://discourse.julialang.org/t/edit-limits/56495)

<div class="topic-metadata">

**Author:** [@calvin](https://discourse.julialang.org/u/calvin)\
**Replies:** 2\
**Last updated:** [March 5, 2021, 5:28am UTC](https://discourse.julialang.org/t/edit-limits/56495 "2021-03-05T05:28:21Z")

</div>

Hi there, why can not I modify my post anymore? I have modified 9 times.

---

## [How do you edit a DataFrame after reading it from a CSV?](https://discourse.julialang.org/t/how-do-you-edit-a-dataframe-after-reading-it-from-a-csv/56235)

<div class="topic-metadata">

**Author:** [@Sanjan\_Das](https://discourse.julialang.org/u/Sanjan_Das)\
**Replies:** 6\
**Last updated:** [March 1, 2021, 4:48pm UTC](https://discourse.julialang.org/t/how-do-you-edit-a-dataframe-after-reading-it-from-a-csv/56235 "2021-03-01T16:48:15Z")

</div>

Hello! I’m having a bit of trouble with being able to edit a DataFrame after reading them in from a CSV. I’ve set it up as shown below. julia\> df = DataFrame(A = String\[\], B = Int\[\]) 0×2 DataFrame julia\> CSV.write("tes…

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

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