# Latest

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

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

**Page:** 1596

---

## [Indentifying pathological cases in IR form](https://discourse.julialang.org/t/indentifying-pathological-cases-in-ir-form/48746)

<div class="topic-metadata">

**Author:** [@wulpuqu](https://discourse.julialang.org/u/wulpuqu)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 1:33pm UTC](https://discourse.julialang.org/t/indentifying-pathological-cases-in-ir-form/48746 "2020-10-21T13:33:54Z")

</div>

Hello everyone, I am currently playing with lowered code and I would like to understand how to identify pathological cases. In the following example, a variable b gets conditionnaly assigned at step 1 of the loop and th…

---

## [\[ANN\] FunctionWranglers.jl - Fast, inlined execution of arrays of functions](https://discourse.julialang.org/t/ann-functionwranglers-jl-fast-inlined-execution-of-arrays-of-functions/48770)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 6:35am UTC](https://discourse.julialang.org/t/ann-functionwranglers-jl-fast-inlined-execution-of-arrays-of-functions/48770 "2020-10-22T06:35:55Z")

</div>

The need for this functionality come up recently in this topic: Given an array of small functions (array length up to 200), each of them had to be computed for a large set of inputs. The problem was that dynamic dispa…

---

## [Threads.@spawn performance](https://discourse.julialang.org/t/threads-spawn-performance/48681)

<div class="topic-metadata">

**Author:** [@j\_tanu](https://discourse.julialang.org/u/j_tanu)\
**Replies:** 7\
**Last updated:** [October 22, 2020, 6:23am UTC](https://discourse.julialang.org/t/threads-spawn-performance/48681 "2020-10-22T06:23:37Z")

</div>

I am trying to perform a complex mathematical operation over the elements of two array. It’s a kind of broadcasting operation. I am trying to achieving the performance gain from threads.@spawn and @simd at the same time.…

---

## [Decide which function to use inside a loop based on a variable](https://discourse.julialang.org/t/decide-which-function-to-use-inside-a-loop-based-on-a-variable/48726)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 10\
**Last updated:** [October 22, 2020, 1:20am UTC](https://discourse.julialang.org/t/decide-which-function-to-use-inside-a-loop-based-on-a-variable/48726 "2020-10-22T01:20:58Z")

</div>

I currently have some code that looks like this: for i = 1:Nₓ-1 if algorithm == "2S" ψ\[i+1, :\] = T2(ψ\[i, :\], ω, dx, F, F̃) elseif algorithm == "4S" ψ\[i+1, :\] = T4S(ψ\[i, :\], ω, …

---

## [How to change colormap in histogram2d (Plots.jl)](https://discourse.julialang.org/t/how-to-change-colormap-in-histogram2d-plots-jl/48784)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 12:59am UTC](https://discourse.julialang.org/t/how-to-change-colormap-in-histogram2d-plots-jl/48784 "2020-10-22T00:59:54Z")

</div>

How do I change the colormap of histogram2d? Thanks!

---

## [Celltracker updates](https://discourse.julialang.org/t/celltracker-updates/48781)

<div class="topic-metadata">

**Author:** [@ervern](https://discourse.julialang.org/u/ervern)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 12:10am UTC](https://discourse.julialang.org/t/celltracker-updates/48781 "2020-10-22T00:10:13Z")

</div>

Hi so I recently posted and found some useful information on how to make code that would track cells. However I’m running into an issue where I think the cells are too close to the background to use most of the detection…

---

## [Strategies for reducing number of queries to a DB](https://discourse.julialang.org/t/strategies-for-reducing-number-of-queries-to-a-db/48668)

<div class="topic-metadata">

**Author:** [@Derek\_Vetsch](https://discourse.julialang.org/u/Derek_Vetsch)\
**Replies:** 2\
**Last updated:** [October 22, 2020, 12:06am UTC](https://discourse.julialang.org/t/strategies-for-reducing-number-of-queries-to-a-db/48668 "2020-10-22T00:06:23Z")

</div>

This might not be a Julia question per se, but I didn’t know whether or not it should be here or Off-Topic. Say I am writing a package for my company’s corporate reporting, and I have a large table in a database. If I …

---

## [Plots -\> PgfPlotsX: Easiest way to insert top title?](https://discourse.julialang.org/t/plots-pgfplotsx-easiest-way-to-insert-top-title/48761)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 8:59pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-easiest-way-to-insert-top-title/48761 "2020-10-21T20:59:08Z")

</div>

Hi! I want to insert a “top title” / “group title”, something like this: Picture taken from Layouts · Plots but I edited it in paint to insert the title. Is there any easy way of doing this? Kind regards

---

## [Clp: problem to build the package](https://discourse.julialang.org/t/clp-problem-to-build-the-package/48763)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 6:07pm UTC](https://discourse.julialang.org/t/clp-problem-to-build-the-package/48763 "2020-10-21T18:07:09Z")

</div>

Dear all, I have installed Clp, but when I try to build it, julia reports: julia\> Pkg.build(“Clp”) Building CodecZlib ─→ ~/.julia/packages/CodecZlib/5t9zO/deps/build.log Building MbedTLS ───→ ~/.julia/packages/MbedTL…

---

## [Help speed up SimpleGraph creation](https://discourse.julialang.org/t/help-speed-up-simplegraph-creation/48754)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 5:58pm UTC](https://discourse.julialang.org/t/help-speed-up-simplegraph-creation/48754 "2020-10-21T17:58:56Z")

</div>

Here’s a MWE of what I’m attempting to do: using DataFrames using LightGraphs using ProgressMeter df = DataFrame(a = rand(1:50\_000, 150\_000), b = rand(1:25\_000, 150\_000)) |\> unique! vs = unique(vcat(df.a, df.b)) n = le…

---

## [Help with debugging some code for the MKLSparse package](https://discourse.julialang.org/t/help-with-debugging-some-code-for-the-mklsparse-package/48764)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 5:51pm UTC](https://discourse.julialang.org/t/help-with-debugging-some-code-for-the-mklsparse-package/48764 "2020-10-21T17:51:41Z")

</div>

On the principle that “given enough eyeballs, all bugs are shallow” I am asking for help in debugging a problem in the dmb/matrix\_sparse branch of the MKLSparse package. The purpose of this package is to use Intel’s Mat…

---

## [How do I construct the initial condition in FEM for ODEProblem once, not twice?](https://discourse.julialang.org/t/how-do-i-construct-the-initial-condition-in-fem-for-odeproblem-once-not-twice/48688)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 4:20pm UTC](https://discourse.julialang.org/t/how-do-i-construct-the-initial-condition-in-fem-for-odeproblem-once-not-twice/48688 "2020-10-21T16:20:16Z")

</div>

I am looking to obtain a solution approximation u = u(x, t) for a partial differential equation via FEM. I am using DifferentialEquations with the prospect utilizing its parameter estimation functionality. The parameter…

---

## [Help me! Julia’s v1.5.2-1 version](https://discourse.julialang.org/t/help-me-julia-s-v1-5-2-1-version/48716)

<div class="topic-metadata">

**Author:** [@iandapaz](https://discourse.julialang.org/u/iandapaz)\
**Replies:** 5\
**Last updated:** [October 21, 2020, 4:06pm UTC](https://discourse.julialang.org/t/help-me-julia-s-v1-5-2-1-version/48716 "2020-10-21T16:06:43Z")

</div>

I’m using Julia’s v1.5.2-1 version and I’m trying to plot a graphic. But when I use the command Pkg.add(“Plots”) a error message appears… Look…: julia\> Pkg.add(“Plots”) Updating registry at C:\\Users\\user\\.julia\\regist…

---

## [Plots -\> PgfPlotsX: Making a completely empty plot?](https://discourse.julialang.org/t/plots-pgfplotsx-making-a-completely-empty-plot/48750)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 3:09pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-making-a-completely-empty-plot/48750 "2020-10-21T15:09:10Z")

</div>

Hi! I want to make a plot, which is completely empty, i.e. no ticks, no axes, no legend, no nothing. The reason is I am making a group plot, where sometimes I only have 5 plots to fill out 6 positions and I do not want …

---

## [Design of related modules wrt pkg](https://discourse.julialang.org/t/design-of-related-modules-wrt-pkg/48708)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 2:37pm UTC](https://discourse.julialang.org/t/design-of-related-modules-wrt-pkg/48708 "2020-10-21T14:37:31Z")

</div>

tldr: regarding use of pkg, are these two examples both doing the same thing (one parent pkg exports functions from all the others)? is there case where one might instead do: each child pkg uses functions from a common…

---

## [BenchmarkTools.jl: @benchmark has big overhead](https://discourse.julialang.org/t/benchmarktools-jl-benchmark-has-big-overhead/48745)

<div class="topic-metadata">

**Author:** [@SonntagK](https://discourse.julialang.org/u/SonntagK)\
**Replies:** 6\
**Last updated:** [October 21, 2020, 2:10pm UTC](https://discourse.julialang.org/t/benchmarktools-jl-benchmark-has-big-overhead/48745 "2020-10-21T14:10:14Z")

</div>

Hello, I want to use BenchmarkTools to compare different model builds using JuMP for linear programming. Doing this for bigger linear problems took longer than I imagined. When looking at the results of @benchmark I no…

---

## [REPL Speed in Juno/JuliaPro vs Julia REPL](https://discourse.julialang.org/t/repl-speed-in-juno-juliapro-vs-julia-repl/48749)

<div class="topic-metadata">

**Author:** [@jdietl](https://discourse.julialang.org/u/jdietl)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 2:08pm UTC](https://discourse.julialang.org/t/repl-speed-in-juno-juliapro-vs-julia-repl/48749 "2020-10-21T14:08:27Z")

</div>

Hi. I’m a new user and I’m working through the JuliaAcademy data science tutorial (except I’m trying to run the examples in JuliaPro instead of the notebooks because I don’t like notebooks very much). I have a question …

---

## [Extract String from Array](https://discourse.julialang.org/t/extract-string-from-array/48720)

<div class="topic-metadata">

**Author:** [@torieowers](https://discourse.julialang.org/u/torieowers)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 1:43pm UTC](https://discourse.julialang.org/t/extract-string-from-array/48720 "2020-10-21T13:43:15Z")

</div>

Hello, I am wanting to get only a list of strings, but instead I am getting an array of arrays. I’ve run: all\_weights = vcat(map(get\_weight,about\_breeds\_links)) get\_weight is a function to take in a link and return o…

---

## [High-dimensional A\\b when running julia -p N](https://discourse.julialang.org/t/high-dimensional-a-b-when-running-julia-p-n/48669)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 1:10pm UTC](https://discourse.julialang.org/t/high-dimensional-a-b-when-running-julia-p-n/48669 "2020-10-21T13:10:03Z")

</div>

Hi, I am trying to optimise a function that solves a series of high-dimensional systems (using A\\b) in parallel (one per iteration of a for-loop). I am not sure whether it would be a good idea to have more cores than wh…

---

## [How to define function signature with nested types of tuples, functions, vectors, and reals?](https://discourse.julialang.org/t/how-to-define-function-signature-with-nested-types-of-tuples-functions-vectors-and-reals/48739)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 12:47pm UTC](https://discourse.julialang.org/t/how-to-define-function-signature-with-nested-types-of-tuples-functions-vectors-and-reals/48739 "2020-10-21T12:47:51Z")

</div>

What am I doing wrong here? julia\> function fcn(xvec::AbstractVector{T}, ytup::Tuple{V}, ztup::Tuple{V}) where {T \<: Real, V \<: AbstractVector{T}} @show typeof(xVec) @show typeof(ytup) @show typeof(…

---

## [Plots -\> PgfPlotsX: Group plot only "outer edge" x and y-labels?](https://discourse.julialang.org/t/plots-pgfplotsx-group-plot-only-outer-edge-x-and-y-labels/48737)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 12:56pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-group-plot-only-outer-edge-x-and-y-labels/48737 "2020-10-21T12:56:20Z")

</div>

Hello! I am using Plots with pgfplotsx(). I have made a plot which looks like: Marked in yellow is the labels I would like to remove. I understand that one way to avoid these labels is by not constructing them in th…

---

## [Call backend functions on Plots.jl (PyPlot backend)](https://discourse.julialang.org/t/call-backend-functions-on-plots-jl-pyplot-backend/45789)

<div class="topic-metadata">

**Author:** [@teored90](https://discourse.julialang.org/u/teored90)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 12:39pm UTC](https://discourse.julialang.org/t/call-backend-functions-on-plots-jl-pyplot-backend/45789 "2020-10-21T12:39:23Z")

</div>

Is there a way to modify a Plots.jl plot by directly calling the backend’s functions on that plot? In my case, the backend would be PyPlot. I need to have a multi-column legend, which doesn’t seem to be supported.

---

## [Juno - how to switch console languages?](https://discourse.julialang.org/t/juno-how-to-switch-console-languages/23454)

<div class="topic-metadata">

**Author:** [@gatohaus](https://discourse.julialang.org/u/gatohaus)\
**Replies:** 13\
**Last updated:** [October 21, 2020, 12:35pm UTC](https://discourse.julialang.org/t/juno-how-to-switch-console-languages/23454 "2020-10-21T12:35:38Z")

</div>

I’m new to IDEs and am trying to get Atom/Juno to a useful state. With Juno working on Atom, the console repl is now solely Julia. Is there a way to switch it to other languages, say python? Editor panes recognize pyt…

---

## [How to properly set log axis scale with a 2d color plot?](https://discourse.julialang.org/t/how-to-properly-set-log-axis-scale-with-a-2d-color-plot/46481)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 12:33pm UTC](https://discourse.julialang.org/t/how-to-properly-set-log-axis-scale-with-a-2d-color-plot/46481 "2020-10-21T12:33:41Z")

</div>

I have a program which scans a 2d parameter space. For each point in the parameter space, it generates a colour (corresponding to system behaviours). The grid points are log10-log10 distributed. I wish to plot this, but …

---

## [Antivirus hit during package install](https://discourse.julialang.org/t/antivirus-hit-during-package-install/48706)

<div class="topic-metadata">

**Author:** [@pticrix](https://discourse.julialang.org/u/pticrix)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 11:34am UTC](https://discourse.julialang.org/t/antivirus-hit-during-package-install/48706 "2020-10-21T11:34:36Z")

</div>

\*tl;dr : \* I get an antivirus hit when I install the ZMQ package. Unsure what it means. It is of no consequence to me as of now. Hi! Unsure where to post this, but I just wanted to raise this particular issue just in c…

---

## [How to set :juno as the default Plots theme during startup](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 6\
**Last updated:** [October 21, 2020, 11:28am UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971 "2020-10-21T11:28:29Z")

</div>

Hi all, I want to set the :juno theme as the default theme of the Plots during startup of a new julia session. For this purpose, I wrote the following lines in the startup.jl file. using Plots using PlotThemes theme(:j…

---

## [Recording simulation data](https://discourse.julialang.org/t/recording-simulation-data/48498)

<div class="topic-metadata">

**Author:** [@stasz](https://discourse.julialang.org/u/stasz)\
**Replies:** 9\
**Last updated:** [October 21, 2020, 10:41am UTC](https://discourse.julialang.org/t/recording-simulation-data/48498 "2020-10-21T10:41:17Z")

</div>

When doing research, I like setting up experiments in Julia to verify my theoretical findings or to simply make sense of the concepts I’m dealing with. The point is, my experiments are usually simple, small and I’d like …

---

## [Inplace matrix sampling](https://discourse.julialang.org/t/inplace-matrix-sampling/48731)

<div class="topic-metadata">

**Author:** [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 9:42am UTC](https://discourse.julialang.org/t/inplace-matrix-sampling/48731 "2020-10-21T09:42:20Z")

</div>

I wonder is there an algorithm, established package or some other way for inplace matrix sampling? Here is an example of what I am trying to achieve using StableRNGs using StatsBase using BenchmarkTools rng = StableRNG…

---

## [Module import vs using](https://discourse.julialang.org/t/module-import-vs-using/48707)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 5\
**Last updated:** [October 21, 2020, 9:30am UTC](https://discourse.julialang.org/t/module-import-vs-using/48707 "2020-10-21T09:30:38Z")

</div>

I’m confused by this table in the docs. The last column is identical for rows 1,3 (import MyModule and using MyModule), which seems inconsistent with the previous paragraph: import also differs from using in that f…

---

## [A question about JuMP](https://discourse.julialang.org/t/a-question-about-jump/48733)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 8:43am UTC](https://discourse.julialang.org/t/a-question-about-jump/48733 "2020-10-21T08:43:02Z")

</div>

I can’t add JuMP in JuliaPro why is that?thanks

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

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