# Latest

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

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

**Page:** 1430

---

## [Scale z plot3d](https://discourse.julialang.org/t/scale-z-plot3d/58953)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [April 11, 2021, 4:35pm UTC](https://discourse.julialang.org/t/scale-z-plot3d/58953 "2021-04-11T16:35:35Z")

</div>

Dear all, How can I reduze the zscale in my plot? using Plots plotly() f(x,y) = y \< x ? cos(8x) + sin(8y) : NaN x = LinRange(-2, 2, 100); y = LinRange(-2, 2, 100); surface(x, y, f,aspect\_ratio = .3) See the strange f…

---

## [Joinpoint Trend Analysis](https://discourse.julialang.org/t/joinpoint-trend-analysis/59035)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 4:00pm UTC](https://discourse.julialang.org/t/joinpoint-trend-analysis/59035 "2021-04-11T16:00:15Z")

</div>

Does anyone know a Pkg capable of fits the “joinpoint model” like this software: Joinpoint Trend Analysis Software Thanks

---

## [Using macros to explode a struct into a tuple of its members](https://discourse.julialang.org/t/using-macros-to-explode-a-struct-into-a-tuple-of-its-members/58997)

<div class="topic-metadata">

**Author:** [@Andrea\_Vigliotti](https://discourse.julialang.org/u/Andrea_Vigliotti)\
**Replies:** 8\
**Last updated:** [April 11, 2021, 3:37pm UTC](https://discourse.julialang.org/t/using-macros-to-explode-a-struct-into-a-tuple-of-its-members/58997 "2021-04-11T15:37:46Z")

</div>

So, I would like use a macro to convert a struct into a tuple of its members let boo be the following struct boo a b c end and collect defined as follows macro collect(x) :( tuple($x.a,$x.b,$x.c) ) end @col…

---

## [Any Pretty Dataframe printing?](https://discourse.julialang.org/t/any-pretty-dataframe-printing/59027)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 3\
**Last updated:** [April 11, 2021, 2:45pm UTC](https://discourse.julialang.org/t/any-pretty-dataframe-printing/59027 "2021-04-11T14:45:24Z")

</div>

Hello, I like so much the PrettyTables.jl . I like the old-fashion look, with very readable fonts. I also like very much the body\_hlines option that separates rows into groups for readability. (I like the vertical li…

---

## [InitError after update](https://discourse.julialang.org/t/initerror-after-update/58917)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 3\
**Last updated:** [April 11, 2021, 1:25pm UTC](https://discourse.julialang.org/t/initerror-after-update/58917 "2021-04-11T13:25:41Z")

</div>

After updating I get this: import DataFrames, Dates, TimeSeries, Plots, MathOptInterface ERROR: InitError: could not load library ".julia\\artifacts\\c34a53538bc6c87c8b376c3f6d0d3248830003bc\\bin\\Qt5Concurrent.dll" The sp…

---

## [Non-negative integers](https://discourse.julialang.org/t/non-negative-integers/59008)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 5\
**Last updated:** [April 11, 2021, 12:55pm UTC](https://discourse.julialang.org/t/non-negative-integers/59008 "2021-04-11T12:55:27Z")

</div>

I want to do some things with non-negative integers and use it in function signatures. Is this idiomatic? # Concrete subtypes should have a \`val\` attribute. abstract type NonNegativeInteger \<: Integer end struct NonNeg…

---

## [Stheno marginals](https://discourse.julialang.org/t/stheno-marginals/58943)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 7\
**Last updated:** [April 11, 2021, 12:48pm UTC](https://discourse.julialang.org/t/stheno-marginals/58943 "2021-04-11T12:48:30Z")

</div>

I’m trying to follow the examples but having some issues. What’s going wrong here? \[8188c328\] Stheno v0.7.1 # # This file just shows how some of the basic manipulations you can do in Stheno work in # practice. See the …

---

## [Logarithmic scaling with plotly](https://discourse.julialang.org/t/logarithmic-scaling-with-plotly/59026)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [April 11, 2021, 11:06am UTC](https://discourse.julialang.org/t/logarithmic-scaling-with-plotly/59026 "2021-04-11T11:06:58Z")

</div>

I want to create my own recipe for bodeplots, where both the x and y axis normally has logarithmic scaling. So I can easily create a plot with with an exponential relation: using Plots plotly() xs = 0:0.001:10 ys = exp…

---

## [Advice for dealing with \`struct\` during development](https://discourse.julialang.org/t/advice-for-dealing-with-struct-during-development/21732)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 21\
**Last updated:** [April 11, 2021, 8:58am UTC](https://discourse.julialang.org/t/advice-for-dealing-with-struct-during-development/21732 "2021-04-11T08:58:47Z")

</div>

I find it quite annoying that I can’t replace a struct that I made. I read somewhere that I should put them in a module because a module can be replaced. E.g. module Distances struct KM{T \<: Real} value::T …

---

## [Dispatch on type tuples in runtime?](https://discourse.julialang.org/t/dispatch-on-type-tuples-in-runtime/58652)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 18\
**Last updated:** [April 11, 2021, 8:19am UTC](https://discourse.julialang.org/t/dispatch-on-type-tuples-in-runtime/58652 "2021-04-11T08:19:39Z")

</div>

getvalue(::typeof(sin), ::Float64) = 1 getvalue(::typeof(sin), ::Number) = 2 getvalue(::MyStruct, args...) = 3 Julia has an awesome type system that lets us very flexibly dispatch on function signatures - all the follow…

---

## [Ignore package version compat](https://discourse.julialang.org/t/ignore-package-version-compat/59021)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [April 11, 2021, 7:48am UTC](https://discourse.julialang.org/t/ignore-package-version-compat/59021 "2021-04-11T07:48:51Z")

</div>

I am trying to install two package versions that are incompatible with each other. Can I tell \]add to ignore the incompatibility and proceed anyway?

---

## [Package used to work, after update to 1.6 it doesnt anymore](https://discourse.julialang.org/t/package-used-to-work-after-update-to-1-6-it-doesnt-anymore/58920)

<div class="topic-metadata">

**Author:** [@meck](https://discourse.julialang.org/u/meck)\
**Replies:** 15\
**Last updated:** [April 11, 2021, 7:38am UTC](https://discourse.julialang.org/t/package-used-to-work-after-update-to-1-6-it-doesnt-anymore/58920 "2021-04-11T07:38:59Z")

</div>

ERROR: LoadError: InitError: could not load library "/home/meck/.julia/artifacts/0a7f440ba143b238cc3dd0def2956d34d76755f3/lib/libnetcdf.so" libmbedcrypto.so.5: cannot open shared object file: No such file or directory St…

---

## [Why is the function evaluation with more allocations faster?](https://discourse.julialang.org/t/why-is-the-function-evaluation-with-more-allocations-faster/58934)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 6\
**Last updated:** [April 11, 2021, 7:24am UTC](https://discourse.julialang.org/t/why-is-the-function-evaluation-with-more-allocations-faster/58934 "2021-04-11T07:24:16Z")

</div>

I have a pretty basic question - I’m evaluating some function over an array of inputs. @inline function f(x) y = @. log(x) return @. exp(y) end This results in extra allocations, and I thought avoiding allocations wou…

---

## ["Undefined behaviour" in Julia; does it e.g. apply to signed overflow addition?](https://discourse.julialang.org/t/undefined-behaviour-in-julia-does-it-e-g-apply-to-signed-overflow-addition/59015)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 7:09am UTC](https://discourse.julialang.org/t/undefined-behaviour-in-julia-does-it-e-g-apply-to-signed-overflow-addition/59015 "2021-04-11T07:09:42Z")

</div>

Compared to e.g. C and C++20 - Wikipedia, how much undefined behavior does Julia have? signed integers are now defined to be represented using two’s complement (signed integer overflow remains undefined behavior) Jul…

---

## [Bug in LightGraphs.SimpleGraphs.random\_regular\_digraph](https://discourse.julialang.org/t/bug-in-lightgraphs-simplegraphs-random-regular-digraph/58901)

<div class="topic-metadata">

**Author:** [@Oko](https://discourse.julialang.org/u/Oko)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 3:09am UTC](https://discourse.julialang.org/t/bug-in-lightgraphs-simplegraphs-random-regular-digraph/58901 "2021-04-11T03:09:48Z")

</div>

I am trying to use LightGraphs.SimpleGraphs.random\_regular\_digraph Method random\_regular\_digraph to create a regular random digraph. Julia version is 1.6.0 on Red Hat Linux. I am running on a single thread. I am very t…

---

## [How can I parse a \`Socket.TCPSocket\` into an \`HTTP.Request\` in Julia?](https://discourse.julialang.org/t/how-can-i-parse-a-socket-tcpsocket-into-an-http-request-in-julia/59017)

<div class="topic-metadata">

**Author:** [@apoor](https://discourse.julialang.org/u/apoor)\
**Replies:** 0\
**Last updated:** [April 11, 2021, 2:56am UTC](https://discourse.julialang.org/t/how-can-i-parse-a-socket-tcpsocket-into-an-http-request-in-julia/59017 "2021-04-11T02:56:43Z")

</div>

I’m trying to get the both the client request and IP address from http requests to my HTTP.jl server (based on the basic server example in the docs). using HTTP using Sockets const APP = HTTP.Router() # My request han…

---

## [Initializing OnlineStats Series with statistics](https://discourse.julialang.org/t/initializing-onlinestats-series-with-statistics/58792)

<div class="topic-metadata">

**Author:** [@jarapo](https://discourse.julialang.org/u/jarapo)\
**Replies:** 3\
**Last updated:** [April 11, 2021, 12:55am UTC](https://discourse.julialang.org/t/initializing-onlinestats-series-with-statistics/58792 "2021-04-11T00:55:01Z")

</div>

Premise: I am running experiments that involve with Monte Carlo sampling on clusters, and I am collecting the mean and variance using OnlineStats. It takes a long time and I get time out errors on our clusters, so I wa…

---

## [Problem installing NetCDF](https://discourse.julialang.org/t/problem-installing-netcdf/59001)

<div class="topic-metadata">

**Author:** [@meck](https://discourse.julialang.org/u/meck)\
**Replies:** 5\
**Last updated:** [April 11, 2021, 12:37am UTC](https://discourse.julialang.org/t/problem-installing-netcdf/59001 "2021-04-11T00:37:17Z")

</div>

What could be the cause for this? (@v1.6) pkg\> add NetCDF Installing known registries into \`~/.julia\` Added registry \`General\` to \`~/.julia/registries/General\` Resolving package versions... Installed Disk…

---

## [Converting string of bytes to integer](https://discourse.julialang.org/t/converting-string-of-bytes-to-integer/58962)

<div class="topic-metadata">

**Author:** [@SudhakarKuma](https://discourse.julialang.org/u/SudhakarKuma)\
**Replies:** 6\
**Last updated:** [April 11, 2021, 12:18am UTC](https://discourse.julialang.org/t/converting-string-of-bytes-to-integer/58962 "2021-04-11T00:18:04Z")

</div>

I am working on interfacing Arduino with Julia. There is a particular experiment of reading the values from a sensor connected to Arduino. For this, I have written a function in Julia 1.6.0. This function reads the valu…

---

## [Add tag with coordinates to plot in Plots.jl](https://discourse.julialang.org/t/add-tag-with-coordinates-to-plot-in-plots-jl/58972)

<div class="topic-metadata">

**Author:** [@achjaj](https://discourse.julialang.org/u/achjaj)\
**Replies:** 4\
**Last updated:** [April 11, 2021, 12:02am UTC](https://discourse.julialang.org/t/add-tag-with-coordinates-to-plot-in-plots-jl/58972 "2021-04-11T00:02:18Z")

</div>

I have a plot with intersecting lines: And I would like to add a tag or pointer which point to the intersection and display the coordinates of the intersection. Something like this: I know the coordinates of the in…

---

## [Inheriting from a Type Parameter](https://discourse.julialang.org/t/inheriting-from-a-type-parameter/59010)

<div class="topic-metadata">

**Author:** [@gphlipot](https://discourse.julialang.org/u/gphlipot)\
**Replies:** 1\
**Last updated:** [April 10, 2021, 9:38pm UTC](https://discourse.julialang.org/t/inheriting-from-a-type-parameter/59010 "2021-04-10T21:38:41Z")

</div>

I’m curious why Julia doesn’t let you define a parametric type that inherits from a parameter, e.g. struct SomeType{T} \<: T end When I try this, Julia gives the error invalid subtyping in definition of SomeType. It se…

---

## [Plots.jl: Modify frame thickness](https://discourse.julialang.org/t/plots-jl-modify-frame-thickness/24258)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 3\
**Last updated:** [April 10, 2021, 9:18pm UTC](https://discourse.julialang.org/t/plots-jl-modify-frame-thickness/24258 "2021-04-10T21:18:04Z")

</div>

How do I modify the linewidth of the frame (frame = :box) of a Plots.jl plot? I’m using the PyPlot backend. Currently my plot looks like this: Clearly, the frame is too thick.

---

## [Fuzzing Julia functions (for security hardening)](https://discourse.julialang.org/t/fuzzing-julia-functions-for-security-hardening/58950)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 3\
**Last updated:** [April 10, 2021, 8:29pm UTC](https://discourse.julialang.org/t/fuzzing-julia-functions-for-security-hardening/58950 "2021-04-10T20:29:56Z")

</div>

This came up when I was asking whether Meta.parse is safe to use. While the function itself is supposed to be safe in principle, it has not been hardened (audited for security bugs). Fuzzing seems like one of the standar…

---

## [Plots.jl fill within limits only](https://discourse.julialang.org/t/plots-jl-fill-within-limits-only/58852)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 7\
**Last updated:** [April 10, 2021, 8:27pm UTC](https://discourse.julialang.org/t/plots-jl-fill-within-limits-only/58852 "2021-04-10T20:27:05Z")

</div>

Quick question. Is it possible in plots to only fill a region greater than some contour level? I’m trying to blank out part of the plot and leave the rest visible underneath. x = 1:0.5:20 y = 1:0.5:10 contour(x, y, (x,y…

---

## [Is there a limit on the number of @async tasks that can be scheduled?](https://discourse.julialang.org/t/is-there-a-limit-on-the-number-of-async-tasks-that-can-be-scheduled/58992)

<div class="topic-metadata">

**Author:** [@bjkaria](https://discourse.julialang.org/u/bjkaria)\
**Replies:** 2\
**Last updated:** [April 10, 2021, 6:04pm UTC](https://discourse.julialang.org/t/is-there-a-limit-on-the-number-of-async-tasks-that-can-be-scheduled/58992 "2021-04-10T18:04:01Z")

</div>

Hi, I am using the HTTP.jl module to create multiple websocket connections and process data from them with @async. In the following program I see only 8 tasks ever succeeding. All the connections are going to be up long…

---

## [Create a CV inside Julia ecosystem](https://discourse.julialang.org/t/create-a-cv-inside-julia-ecosystem/58986)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 1\
**Last updated:** [April 10, 2021, 5:26pm UTC](https://discourse.julialang.org/t/create-a-cv-inside-julia-ecosystem/58986 "2021-04-10T17:26:07Z")

</div>

How can I create a CV (resume) inside the Julia ecosystem? Using weave.jl plus Pandoc? In R I used a package called vitae for this effect.

---

## [Not able to use package; maybe have broken Julia](https://discourse.julialang.org/t/not-able-to-use-package-maybe-have-broken-julia/58970)

<div class="topic-metadata">

**Author:** [@meck](https://discourse.julialang.org/u/meck)\
**Replies:** 4\
**Last updated:** [April 10, 2021, 4:30pm UTC](https://discourse.julialang.org/t/not-able-to-use-package-maybe-have-broken-julia/58970 "2021-04-10T16:30:55Z")

</div>

julia\> using Oceananigans \[ Info: Precompiling Oceananigans \[9e8cae18-63c1-5223-a75c-80ca9d6e9a09\] ERROR: LoadError: InitError: could not load library "/home/meck/.julia/artifacts/0a7f440ba143b238cc3dd0def2956d34d76755f3…

---

## [Map and slice don't preserve the size of an array](https://discourse.julialang.org/t/map-and-slice-dont-preserve-the-size-of-an-array/58987)

<div class="topic-metadata">

**Author:** [@Sunny](https://discourse.julialang.org/u/Sunny)\
**Replies:** 1\
**Last updated:** [April 10, 2021, 4:23pm UTC](https://discourse.julialang.org/t/map-and-slice-dont-preserve-the-size-of-an-array/58987 "2021-04-10T16:23:06Z")

</div>

I’m implementing element-wise multiplication and want to multiply array of size (2,8) with array of size (N,2,8). When I’m making this as follows (map(x -\> rand(3,4) .\* x, eachslice(rand(1,3,4), dims=1)))\[end\] I’m lo…

---

## [LoadError: UndefVarError: nb\_available not defined](https://discourse.julialang.org/t/loaderror-undefvarerror-nb-available-not-defined/58954)

<div class="topic-metadata">

**Author:** [@SudhakarKuma](https://discourse.julialang.org/u/SudhakarKuma)\
**Replies:** 1\
**Last updated:** [April 10, 2021, 2:22pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-nb-available-not-defined/58954 "2021-04-10T14:22:39Z")

</div>

Hello everyone! I have a function (as given below) that was working for Julia 0.4.5. function analogRead(file\_des::SerialPorts.SerialPort , pin\_no::Int64) str = "A"\*string(Char(48+pin\_no)) #"An" for analog value on …

---

## [Unable to register an updated package on JuliaHub](https://discourse.julialang.org/t/unable-to-register-an-updated-package-on-juliahub/58946)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 3\
**Last updated:** [April 10, 2021, 2:13pm UTC](https://discourse.julialang.org/t/unable-to-register-an-updated-package-on-juliahub/58946 "2021-04-10T14:13:16Z")

</div>

I have been using the JuliaHub website to register new and updated packages. I just tried to register a new version SimpleRandom there but it failed and I got this message: Unable to fetch repository scheinerman/SimpleR…

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

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