# Latest

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

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

**Page:** 1880

---

## [Winston plot layout: axis labels, axis numbers, and aspect ratio](https://discourse.julialang.org/t/winston-plot-layout-axis-labels-axis-numbers-and-aspect-ratio/31269)

<div class="topic-metadata">

**Author:** [@jfg](https://discourse.julialang.org/u/jfg)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 11:03am UTC](https://discourse.julialang.org/t/winston-plot-layout-axis-labels-axis-numbers-and-aspect-ratio/31269 "2019-11-19T11:03:24Z")

</div>

Hi there, I am trying to improve the design of some of my graphs using Winston but I am facing some troubles: The power in the units of the axis labels looks too big and high, it there any way to change the size so tha…

---

## [Squaring the square algorithm in julia](https://discourse.julialang.org/t/squaring-the-square-algorithm-in-julia/30996)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 9:41am UTC](https://discourse.julialang.org/t/squaring-the-square-algorithm-in-julia/30996 "2019-11-19T09:41:54Z")

</div>

I’m trying to solve Squaring the square problem and hope to find a reference algorithm written in Julia. But couldn’t find one (probably because I don’t know where to look for) I want to know if a given set of the squar…

---

## [\`\[I(2) rand(2,100)\]\` is sparse?](https://discourse.julialang.org/t/i-2-rand-2-100-is-sparse/31241)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 8:03am UTC](https://discourse.julialang.org/t/i-2-rand-2-100-is-sparse/31241 "2019-11-19T08:03:02Z")

</div>

\[I(2) rand(2,100)\] gives a sparse matrix. May I ask why?

---

## [Array{T, 1} where T\<:Real versus Array{T where T\<:Real, 1}](https://discourse.julialang.org/t/array-t-1-where-t-real-versus-array-t-where-t-real-1/31249)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 5\
**Last updated:** [November 19, 2019, 7:53am UTC](https://discourse.julialang.org/t/array-t-1-where-t-real-versus-array-t-where-t-real-1/31249 "2019-11-19T07:53:07Z")

</div>

T1 = Array{T, 1} where T\<:Real represents all possible arrays of the form \[T, T, T, T, . . . \], i.e., any array of T1 consists of elements of the subtype of Real and they have to be of same type. On the other hand, T2 …

---

## [Using ForwardDiff to compute the jacobian and gradient of a function that includes another function](https://discourse.julialang.org/t/using-forwarddiff-to-compute-the-jacobian-and-gradient-of-a-function-that-includes-another-function/31255)

<div class="topic-metadata">

**Author:** [@Ujku\_KU](https://discourse.julialang.org/u/Ujku_KU)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 7:35am UTC](https://discourse.julialang.org/t/using-forwarddiff-to-compute-the-jacobian-and-gradient-of-a-function-that-includes-another-function/31255 "2019-11-19T07:35:29Z")

</div>

hi guys I have a situation like following: function update\_step(kernelPCA::KernelPCA, withRespectTo::Type{WithRespectToData}, abstractApplication::Type{Denoising}, …

---

## [What role does bearing play in road network modelling?](https://discourse.julialang.org/t/what-role-does-bearing-play-in-road-network-modelling/31254)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 7:19am UTC](https://discourse.julialang.org/t/what-role-does-bearing-play-in-road-network-modelling/31254 "2019-11-19T07:19:44Z")

</div>

Hi. I understand that bearing is related to the direction / angle of the vehicle movement. Based on wiki, Trigonometry/Compass Bearings - Wikibooks, open books for an open world, I got what it is. After viewing this vide…

---

## [JuliaPro is slower than the standard Julia. How come?](https://discourse.julialang.org/t/juliapro-is-slower-than-the-standard-julia-how-come/17264)

<div class="topic-metadata">

**Author:** [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Replies:** 8\
**Last updated:** [November 19, 2019, 6:46am UTC](https://discourse.julialang.org/t/juliapro-is-slower-than-the-standard-julia-how-come/17264 "2019-11-19T06:46:34Z")

</div>

After upgrading from JuliaPro 0.6 to JuliaPro 1.0.1 I noticed that the console starts slower, and loading a module for the first time in a fresh session is slower. At first I thought it was due to the new Julia version. …

---

## [How to make this Type-stable: Read a list of operation from a user file](https://discourse.julialang.org/t/how-to-make-this-type-stable-read-a-list-of-operation-from-a-user-file/31209)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 3\
**Last updated:** [November 19, 2019, 6:32am UTC](https://discourse.julialang.org/t/how-to-make-this-type-stable-read-a-list-of-operation-from-a-user-file/31209 "2019-11-19T06:32:03Z")

</div>

How to make this Type-stable: I will read a list of operation from a user file, which defines what operation I want to do (e.g. Run, Shout, Cut, Roll etc) Each operation will have their own “struct” or “behavior” that …

---

## [What's the macro to prevent a vector from moving memory location during a function call?](https://discourse.julialang.org/t/whats-the-macro-to-prevent-a-vector-from-moving-memory-location-during-a-function-call/31250)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [November 19, 2019, 6:02am UTC](https://discourse.julialang.org/t/whats-the-macro-to-prevent-a-vector-from-moving-memory-location-during-a-function-call/31250 "2019-11-19T06:02:34Z")

</div>

I think it belongs to GC but I can’t remember the macro name.

---

## [Registry dirty](https://discourse.julialang.org/t/registry-dirty/17989)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 30\
**Last updated:** [November 19, 2019, 5:58am UTC](https://discourse.julialang.org/t/registry-dirty/17989 "2019-11-19T05:58:42Z")

</div>

Apparently my registry is dirty; how should I clean it? Julia-1.0.2\> Pkg.update() Updating registry at \`C:\\Users\\plowman\\.julia\\registries\\General\` ┌ Warning: Some registries failed to update: │ — \`C:\\Users\\plowma…

---

## [Juno ide repl conpty error while starting Julia session](https://discourse.julialang.org/t/juno-ide-repl-conpty-error-while-starting-julia-session/30355)

<div class="topic-metadata">

**Author:** [@rocflight83](https://discourse.julialang.org/u/rocflight83)\
**Replies:** 9\
**Last updated:** [November 19, 2019, 3:34am UTC](https://discourse.julialang.org/t/juno-ide-repl-conpty-error-while-starting-julia-session/30355 "2019-11-19T03:34:39Z")

</div>

Randomly getting this error. Reinstalled to latest version of atom, but guess its unrelated since error persists. Any suggestions? C:\\Users\\pengl\\.atom\\packages\\julia-client\\lib\\connection\\local.coffee:172 Julia exite…

---

## [Interpreting multiple lines on one level of ProfileView](https://discourse.julialang.org/t/interpreting-multiple-lines-on-one-level-of-profileview/31235)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 1\
**Last updated:** [November 19, 2019, 12:21am UTC](https://discourse.julialang.org/t/interpreting-multiple-lines-on-one-level-of-profileview/31235 "2019-11-19T00:21:15Z")

</div>

A handy feature of ProfileView is that hovering over the graph shows the line that goes with the bar one is over. However, for some of my results, I see multiple lines listed. What does this mean? @tim.holy I wasn’t…

---

## [Latex-friendly picture with Plots()](https://discourse.julialang.org/t/latex-friendly-picture-with-plots/31223)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 9\
**Last updated:** [November 18, 2019, 11:54pm UTC](https://discourse.julialang.org/t/latex-friendly-picture-with-plots/31223 "2019-11-18T23:54:46Z")

</div>

Hi, What is the best/simplest to use package to create pictures with Plots() that can be exported to latex? Trying to avoid the regular png.

---

## [Automating a constructor for all subtypes](https://discourse.julialang.org/t/automating-a-constructor-for-all-subtypes/31240)

<div class="topic-metadata">

**Author:** [@andrewning](https://discourse.julialang.org/u/andrewning)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 10:41pm UTC](https://discourse.julialang.org/t/automating-a-constructor-for-all-subtypes/31240 "2019-11-18T22:41:49Z")

</div>

MWE below. I have an abstract type (AbstractComponent) and when a user creates a subtype of this abstract type I need to convert that to something else entirely (Python). This converted object is actually a Python obje…

---

## [Which tools to do a chromaticity diagram?](https://discourse.julialang.org/t/which-tools-to-do-a-chromaticity-diagram/31230)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 10:05pm UTC](https://discourse.julialang.org/t/which-tools-to-do-a-chromaticity-diagram/31230 "2019-11-18T22:05:49Z")

</div>

I want to make some chromaticity diagrams (e.g.Chromaticity - Wikipedia) and am not sure which Julia graphics package would be most suitable. I’ve been looking at Luxor, Plots, Makie, and Gadfly examples and am leaning t…

---

## [Alpha values in 3d plotting](https://discourse.julialang.org/t/alpha-values-in-3d-plotting/31236)

<div class="topic-metadata">

**Author:** [@Dom-Skinner](https://discourse.julialang.org/u/Dom-Skinner)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 9:17pm UTC](https://discourse.julialang.org/t/alpha-values-in-3d-plotting/31236 "2019-11-18T21:17:51Z")

</div>

When using the pyplots backend for 3d scatter, the points have different alpha values even when you set alpha to be equal to 1. Anyone know how to control the alpha values? E.g. using Plots pyplot() P = \[rand(10) for …

---

## [Gradient of parameters that apply only to subsets of data](https://discourse.julialang.org/t/gradient-of-parameters-that-apply-only-to-subsets-of-data/31181)

<div class="topic-metadata">

**Author:** [@mihai](https://discourse.julialang.org/u/mihai)\
**Replies:** 3\
**Last updated:** [November 18, 2019, 8:09pm UTC](https://discourse.julialang.org/t/gradient-of-parameters-that-apply-only-to-subsets-of-data/31181 "2019-11-18T20:09:09Z")

</div>

Hi, I would like to optimize parameters of an analytic function to fit heterogeneous data (different experimental conditions, partly overlapping). I’m using index arrays to know which parameters to use for which data poi…

---

## [Plot() output written to HTML file?](https://discourse.julialang.org/t/plot-output-written-to-html-file/31182)

<div class="topic-metadata">

**Author:** [@pontus](https://discourse.julialang.org/u/pontus)\
**Replies:** 6\
**Last updated:** [November 18, 2019, 5:25pm UTC](https://discourse.julialang.org/t/plot-output-written-to-html-file/31182 "2019-11-18T17:25:18Z")

</div>

Any quick suggestions for existing packages or a workflow for including output of a Plot() in Julia html output written to a file?? Looking at a Weave or Literate+Documenter workflow as one option. :thinking: For refer…

---

## [Using push!](https://discourse.julialang.org/t/using-push/30935)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 8\
**Last updated:** [November 18, 2019, 3:48pm UTC](https://discourse.julialang.org/t/using-push/30935 "2019-11-18T15:48:04Z")

</div>

I am using push! to store the value of an array in every iteration t. But, it does not work like I expect it to: function trial(n) m=Any\[\] y=rand(10) for t in 1:n push!(m,y) for x in 10 y\[x\]=rand() …

---

## [Hack: AMD Ryzen/TR/Epyc + Intel Math Kernel Library (MKL)](https://discourse.julialang.org/t/hack-amd-ryzen-tr-epyc-intel-math-kernel-library-mkl/31226)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 0\
**Last updated:** [November 18, 2019, 2:50pm UTC](https://discourse.julialang.org/t/hack-amd-ryzen-tr-epyc-intel-math-kernel-library-mkl/31226 "2019-11-18T14:50:37Z")

</div>

Interesting performance hack for Ryzen/TR CPU + MKL → “up to 250% performance gains” (based on reddit post ) in theory it should work with Julia+MKL ; Anybody can test / validate ? “The method provided here does e…

---

## [TagBot Failing](https://discourse.julialang.org/t/tagbot-failing/30954)

<div class="topic-metadata">

**Author:** [@s-broda](https://discourse.julialang.org/u/s-broda)\
**Replies:** 3\
**Last updated:** [November 18, 2019, 1:37pm UTC](https://discourse.julialang.org/t/tagbot-failing/30954 "2019-11-18T13:37:09Z")

</div>

TagBot started failing on me a day ago. There are no commits between the last succesful run and it starting to fail. Here’s an example run: https://github.com/s-broda/ARCHModels.jl/runs/297652090 Run JuliaRegistries/Ta…

---

## [JuMP : not getting the correct solution of the optimization problem](https://discourse.julialang.org/t/jump-not-getting-the-correct-solution-of-the-optimization-problem/29947)

<div class="topic-metadata">

**Author:** [@Val](https://discourse.julialang.org/u/Val)\
**Replies:** 7\
**Last updated:** [October 16, 2019, 3:23pm UTC](https://discourse.julialang.org/t/jump-not-getting-the-correct-solution-of-the-optimization-problem/29947 "2019-10-16T15:23:28Z")

</div>

Dear everyone I am solving a minimization problem under equality and inequality constraints. I solve this problem with COSMO and I get a solution which is the vector alpha\_opt=\[0 0 0\] But I found another vector which i…

---

## [How to skip the updating registry step](https://discourse.julialang.org/t/how-to-skip-the-updating-registry-step/31220)

<div class="topic-metadata">

**Author:** [@innerlee](https://discourse.julialang.org/u/innerlee)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 12:19pm UTC](https://discourse.julialang.org/t/how-to-skip-the-updating-registry-step/31220 "2019-11-18T12:19:52Z")

</div>

When the connection is slow, we might hang at this step when trying to add a new package: Updating registry at \`~/.julia/registries/General\` How to simply skip this step? It was updated minutes before (after waited for…

---

## [Interactive 3D Plot with Atom+Juno](https://discourse.julialang.org/t/interactive-3d-plot-with-atom-juno/31180)

<div class="topic-metadata">

**Author:** [@guberger](https://discourse.julialang.org/u/guberger)\
**Replies:** 2\
**Last updated:** [November 18, 2019, 12:13pm UTC](https://discourse.julialang.org/t/interactive-3d-plot-with-atom-juno/31180 "2019-11-18T12:13:13Z")

</div>

Hi! I would like to draw 3D plots in Julia with Atom+Juno. Ideally, the features that I would like from the plots are interactivity (zooming and rotation), transparency of the surface, and that it works with Atom+Juno (n…

---

## [How to zoom in on profiler view](https://discourse.julialang.org/t/how-to-zoom-in-on-profiler-view/31190)

<div class="topic-metadata">

**Author:** [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Replies:** 3\
**Last updated:** [November 18, 2019, 11:50am UTC](https://discourse.julialang.org/t/how-to-zoom-in-on-profiler-view/31190 "2019-11-18T11:50:24Z")

</div>

Is there a way to zoom in on output from Juno.profiler()? When I use the scroll wheel or the +/- buttons in the graphical interface, it appears to just pan the output.

---

## [Why it is so slow to factor(BigInt) by Primes?](https://discourse.julialang.org/t/why-it-is-so-slow-to-factor-bigint-by-primes/31112)

<div class="topic-metadata">

**Author:** [@shenlixing](https://discourse.julialang.org/u/shenlixing)\
**Replies:** 5\
**Last updated:** [November 18, 2019, 9:30am UTC](https://discourse.julialang.org/t/why-it-is-so-slow-to-factor-bigint-by-primes/31112 "2019-11-18T09:30:06Z")

</div>

I add Primes into Julia today , it works well. But a little surprise, when factor(12346871234523845243095830496798990897706789), it takes 89 seconds, much longer than SageMath ( less than 1 second). I guess that Prime…

---

## [Error using CuArrays in Colab](https://discourse.julialang.org/t/error-using-cuarrays-in-colab/31119)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 5\
**Last updated:** [November 18, 2019, 9:24am UTC](https://discourse.julialang.org/t/error-using-cuarrays-in-colab/31119 "2019-11-18T09:24:22Z")

</div>

I get the following error while trying to use CuArrays on GoogleColab: pkg"add CuArrays; precompile;" using CuArrays mgpu = cu(mcpu) @benchmark mgpu\*mgpu The error message is: Resolving package versions... Installed…

---

## [Please help me with my optimal power flow problem](https://discourse.julialang.org/t/please-help-me-with-my-optimal-power-flow-problem/31211)

<div class="topic-metadata">

**Author:** [@varun\_yaramasu](https://discourse.julialang.org/u/varun_yaramasu)\
**Replies:** 2\
**Last updated:** [November 18, 2019, 9:02am UTC](https://discourse.julialang.org/t/please-help-me-with-my-optimal-power-flow-problem/31211 "2019-11-18T09:02:25Z")

</div>

using JuMP,Ipopt m=Model(with\_optimizer(Ipopt.Optimizer)) from to r x b Max\_MVA(rate) branch=\[ 1 2 0.1 0.2 0.04 60 1 4 0.05 0.2 0.04 90 1 5 0.08 0.3 0…

---

## [Please be mindful of version bounds and semantic versioning when tagging your packages](https://discourse.julialang.org/t/please-be-mindful-of-version-bounds-and-semantic-versioning-when-tagging-your-packages/30708)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 143\
**Last updated:** [November 18, 2019, 7:32am UTC](https://discourse.julialang.org/t/please-be-mindful-of-version-bounds-and-semantic-versioning-when-tagging-your-packages/30708 "2019-11-18T07:32:47Z")

</div>

In order for packages to be automatically merged into the general registry, it is required that the package’s Project.toml contains a compat section giving upper version bounds on all direct dependencies. I wanted to br…

---

## [How to document type properties defined with \`getproperty\`?](https://discourse.julialang.org/t/how-to-document-type-properties-defined-with-getproperty/31174)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 3\
**Last updated:** [November 18, 2019, 7:20am UTC](https://discourse.julialang.org/t/how-to-document-type-properties-defined-with-getproperty/31174 "2019-11-18T07:20:00Z")

</div>

Consider the structs Foo and Bar: """ Doc for type \`Foo\`. """ struct Foo """ Doc for field Foo.x """ x::Int Foo() = new(2) end """ Doc for type \`Bar\`. """ struct Bar end Base.propertynames(::Bar) = (:x,) fu…

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

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