Re: [julia-users] Re: Syntax sugar for composite type decomposition?

2016-11-16 Thread Tom Breloff
https://github.com/JuliaML/StochasticOptimization.jl/blob/master/src/utils.jl#L2-L16 Don't use it though. :) On Wed, Nov 16, 2016 at 8:07 AM, Mauro wrote: > On Wed, 2016-11-16 at 14:02, FANG Colin wrote: > > Macro seems to have answered this in a

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-15 Thread Tom Breloff
y about what you plot, just want to see the final arrangement. But > if you still think it does not make sense what I say (why not?), it doesn't > hurt to document the limitations... > > Cheers, > > Ferran. > > > On Monday, November 14, 2016 at 2:50:13 PM UTC+1, Tom Bre

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Tom Breloff
The behavior is currently undefined if you pass in the same plot twice. Unless there's a compelling reason, I don't think that will change. On Monday, November 14, 2016, Scott T wrote: > Oh my mistake, I see you have supplied plot_5 twice. If I do that, I get > the

Re: [julia-users] Problem using FastAnonymous.jl in Julia 0.5

2016-11-13 Thread Tom Breloff
Don't use it? Anonymous functions are fast in 0.5 now. On Sunday, November 13, 2016, wrote: > using FastAnonymous > > INFO: Precompiling module FastAnonymous. > WARNING: symbol is deprecated, use Symbol instead. > in depwarn(::String, ::Symbol) at

Re: [julia-users] Graphs.jl to plot graphs in Jupyter notebooks?

2016-11-11 Thread Tom Breloff
Just posted: http://www.breloff.com/Graphs/ On Fri, Nov 11, 2016 at 11:32 AM, Angel de Vicente < angel.vicente.garr...@gmail.com> wrote: > Hi, > > Tom Breloff <t...@breloff.com> writes: > > FYI... I'm working on a demo for this sort of thing... stay

Re: [julia-users] Graphs.jl to plot graphs in Jupyter notebooks?

2016-11-11 Thread Tom Breloff
FYI... I'm working on a demo for this sort of thing... stay tuned: ​ On Fri, Nov 11, 2016 at 10:32 AM, David P. Sanders wrote: > Use LightGraphs.jl > > I believe that Graphs.jl is deprecated.

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-11 Thread Tom Breloff
"@layout [a grid(2,2); b]" should work On Friday, November 11, 2016, Ferran Mazzanti wrote: > Sorry for sneaking in again, but I have tried to extrapolate the examples > in the notebook (thanks again Scott) to include a fifth plot below (that > is, to get the same

Re: [julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Tom Breloff
Sounds like progress. You might try restarting Julia, and also try the plotting command a few times. Blink is known to have a race condition on startup that sometimes produces this sort of error. On Tue, Nov 8, 2016 at 1:02 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > Thanks.

Re: [julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Tom Breloff
s you'd like to showcase? Inset plots? I think the > key things to get across are how to define layouts and how to overlay/facet > series within a layout. > > Scott > > > On Tuesday, 8 November 2016 16:28:11 UTC, Tom Breloff wrote: >> >> Thanks for putting those examples

Re: [julia-users] Re: [Announcement] Moving to Discourse (Statement of Intent)

2016-11-08 Thread Tom Breloff
+1... can we move already? Discourse is a huge improvement. I specifically don't answer some questions here because of the difficulty in writing answers with code. On Sun, Nov 6, 2016 at 3:16 PM, Stefan Karpinski wrote: > - Selectively subscribe to certain

Re: [julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Tom Breloff
Thanks for putting those examples together Scott. Do you want to contribute that to ExamplePlots? Ferran: as Scott has shown nicely, there's an ton of different ways to do what you want, and the "right" way is going to depend on your problem... what the layouts/data look like. Many times it's

Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-07 Thread Tom Breloff
You should probably open issues/PRs in the individual packages then... this sounds like a Blink issue. On Mon, Nov 7, 2016 at 5:09 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > Yes, I did. Unfortunately it didn't help. > > On Monday, November 7, 2016 at 3:44:2

Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-07 Thread Tom Breloff
I'll ask the obvious question... did you try "Blink.AtomShell.install()"? Nice work getting as far as you did. On Mon, Nov 7, 2016 at 3:35 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > I am using Julia 0.5.0 on FreeBSD 11. I've had a few problems trying to > install the Plots

Re: [julia-users] using or import a specific package version

2016-11-04 Thread Tom Breloff
Not that I know of. Hopefully the next generation package manager (Pkg3) will enable this sort of conditional pinning. It should at least enable dual environments. On Friday, November 4, 2016, Tom Lee wrote: > Hi all, > > Is there any way to specify that "using" or "import"

Re: [julia-users] How do I use Guide.yticks() with a log scale?

2016-11-03 Thread Tom Breloff
Well, only if you'd like to switch your workflow to Plots... (Though the OP should consider it, this question was asking about Gadfly) To answer... Gadfly expects the exponent when setting the ticks manually, not the actual value. On Wednesday, November 2, 2016, Jeffrey Sarnoff

Re: [julia-users] Re: Fast vector element-wise multiplication

2016-11-01 Thread Tom Breloff
As I understand it, the .* will fuse, but the .= will not (until 0.6?), so A will be rebound to a newly allocated array. If my understanding is wrong I'd love to know. There have been many times in the last few days that I would have used it... On Tue, Nov 1, 2016 at 10:06 PM, Sheehan Olver

Re: [julia-users] ImageView very slow

2016-10-26 Thread Tom Breloff
You're looking for "heatmap". You should read the docs if you want to learn more. On Wednesday, October 26, 2016, Paul B. wrote: > Tim: Thank you, that works great. > > Josef: I can plot 2D matrices with GR (which is what I want) but your > code example doesn't work. GR

Re: [julia-users] FactCheck.jl bundled with Julia?

2016-10-14 Thread Tom Breloff
Actually that's not true. AFAIK, people are switching back to the new testing in Base, and FactCheck will be deprecated eventually. (Unless I got the wrong memo?) On Friday, October 14, 2016, Júlio Hoffimann wrote: > Hi, > > It seems that FactCheck.jl has become the

Re: [julia-users] errorbar plot in Plots.jl

2016-10-14 Thread Tom Breloff
Already implemented as attributes: yerror and xerror On Friday, October 14, 2016, wrote: > I have just discovered Plots, which I use mostly with the PlotlyJS backend > because of the inline interactivity in Juliabox, and I have been spoiled by > it: thank you Tom and

Re: [julia-users] python-like generators?

2016-10-13 Thread Tom Breloff
I've used them, and I think a Julia Task is a better comparison. So while the syntax is different you can accomplish the same thing. On Thursday, October 13, 2016, Neal Becker wrote: > julia-0.5 supports generator expressions, ala python, which is very nice. > > Any

Re: [julia-users] Error setting limits on log scale in Plots.jl

2016-10-12 Thread Tom Breloff
Just fixed on master: using Plots; plotlyjs() plot(rand(10), xlims = (1e-3,1e2), xscale = :log10) On Wed, Oct 12, 2016 at 2:59 PM, Tom Breloff <t...@breloff.com> wrote: > The Plots convention is to set the actual number in the "lims" attribute, > *not* the exponent.

Re: [julia-users] Error setting limits on log scale in Plots.jl

2016-10-12 Thread Tom Breloff
The Plots convention is to set the actual number in the "lims" attribute, *not* the exponent. Do "xlims = (1e-3, 1e2)" However, it seems like the PlotlyJS backend doesn't handle this properly... I'll have to look into it. Also, for anyone else, the best venue for quick questions like this is in

Re: [julia-users] Uniform axis across subplots in Plots.jl

2016-10-12 Thread Tom Breloff
er the use of subplots is important for > my application since I have multiple data sets of varying size that I would > like to show on different subplots with a common set of ylimits (or > xlimits). Thanks for looking into this! > > > > On Wednesday, October 12, 2016 at 2:23:33 PM UTC-4

Re: [julia-users] Uniform axis across subplots in Plots.jl

2016-10-12 Thread Tom Breloff
This should work as you want: plot([[1, 2, 4],[1,5,10,3]], layout=2, link=:all) There seems to be a bug with the link attribute when combining subplots. I'll look into it. On Wed, Oct 12, 2016 at 2:13 PM, r5823 wrote: > Is there a way to make the yaxis and/or the xaxis

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-10-12 Thread Tom Breloff
I just *immediately* found a bug thanks to the redefinition warning: julia> using Plots; plotlyjs() > INFO: Recompiling stale cache file /home/tom/.julia/lib/v0.5/Plots.ji for > module Plots. > WARNING: Method definition apply_recipe(Base.Dict{Symbol, Any}, > Type{Base.Dates.Date},

Re: [julia-users] Setting/getting field-like members with side effects

2016-10-09 Thread Tom Breloff
I think that's great, but know that StochasticOptimization is still being designed and will likely change. On Sunday, October 9, 2016, Chris Rackauckas wrote: > Missed that one, though it should be > > mysolver[:linear_system][:parameters][:solver_type] = :GMRES > > There's

Re: [julia-users] Re: macro: with

2016-10-09 Thread Tom Breloff
What about it? I don't think there's anything like this in Parameters. On Sun, Oct 9, 2016 at 1:27 PM, Chris Rackauckas <rackd...@gmail.com> wrote: > What about Parameters.jl <https://github.com/mauro3/Parameters.jl>? > > > On Wednesday, September 7, 2016 at 7:23:47 AM

Re: [julia-users] macro: with

2016-10-09 Thread Tom Breloff
Heh... it took a google search to figure out where I put it. https://github.com/tbreloff/CTechCommon.jl/blob/master/src/macros.jl#L113-L155 On Sun, Oct 9, 2016 at 12:19 PM, Ben Lauwens wrote: > Hi Tom > > I am interested. I am building a macro mimicking how iterator

Re: [julia-users] Re: Julia and the Tower of Babel

2016-10-08 Thread Tom Breloff
I think sometimes people go overboard with types, but types allow us to take full advantage of multiple dispatch and abstraction on another level. For example, a diagonal matrix and a full/dense matrix are both the same thing, but if you can dispatch on them differently you can massively improve

Re: [julia-users] Julia and the Tower of Babel

2016-10-07 Thread Tom Breloff
This is something that I've spent a lot of time and energy thinking and discussing, as part of both Plots and JuliaML. I think the situation can be improved in a big way, but this is not something with a "magic solution". It takes time, effort, and a constant desire to collaborate and design

Re: [julia-users] REPL sometimes really slow in 0.5

2016-10-06 Thread Tom Breloff
The first thing I'd check is whether you're using any swap (next time you notice the slowness)... that will bring a system to its knees instantly. On Thu, Oct 6, 2016 at 9:29 AM, Páll Haraldsson wrote: > Has anyone noticed, for such simple stuff as: > > a=[1,2,3,1] >

Re: [julia-users] View (a portion of a) vector as a matrix

2016-10-02 Thread Tom Breloff
Look at 'splitview' in CatViews.jl On Sunday, October 2, 2016, Alexey Cherkaev wrote: > I have the model where it is convenient to represent one of the variables > as a matrix. This variable, however, is obtained as a solution of ODEs > (among other variables). I'm

Re: [julia-users] Is there a way to download a copy of Plots' documentation?

2016-09-25 Thread Tom Breloff
Also I'll state the obvious. The documentation is not a static reference. If you take a snapshot of it then it'll get outdated. On Sunday, September 25, 2016, Chris Rackauckas wrote: > You have to do what Sundara describes. This is a limitation of > Documenter.jl with the

Re: [julia-users] Re: Visualizing a Julia AST (abstract syntax tree) as a tree

2016-09-22 Thread Tom Breloff
Hi David this is very cool and useful! I'd be happy to have it in PlotRecipes if you don't find a better home for it. If there's a generic function to produce an adjacency list then we could use my graph recipes. When I have the time (i.e. soonish when I really want nicer graphs) I plan on

Re: [julia-users] how to get rid of axis in Plots ?

2016-09-22 Thread Tom Breloff
This isn't configurable right now, but I've wanted the same thing. Can you open an issue and I'll add when I have a couple minutes? I think the plotlyjs backend does this by default though. On Thursday, September 22, 2016, Roger Herikstad wrote: > Hey, > Similar

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-15 Thread Tom Breloff
I like splatfields but I think it's hard to make work with type parameters (which is normally a deal breaker for me) On Thursday, September 15, 2016, 'Greg Plowman' via julia-users < julia-users@googlegroups.com> wrote: > > Another variation on Chris's @commonfields and Tom's @base & @extend >

Re: [julia-users] Re: Fused broadcasting?

2016-09-15 Thread Tom Breloff
And I must say... I had my doubts about the "dot" operator, but this has turned out really nicely and brings some powerful syntax. Nice work Steven! On Thu, Sep 15, 2016 at 5:38 PM, daycaster wrote: > Thanks Steven, "fused" did the trick.

Re: [julia-users] online (streaming) statistics?

2016-09-14 Thread Tom Breloff
https://github.com/joshday/OnlineStats.jl (note that StreamStats was deprecated in favor of this) On Wed, Sep 14, 2016 at 11:44 AM, Neal Becker wrote: > Is there a package for online (streaming) statistics? > > This would be an object that could be called repeatedly with

Re: [julia-users] How to make generic constructors with no arguments work?

2016-09-13 Thread Tom Breloff
julia> type A{T} item::Nullable{T} function A() new(Nullable{T}()) end end julia> A{Int}() A{Int64}(Nullable{Int64}()) You only need the name, and it uses the parameters from the type definition. On Tue, Sep 13, 2016 at 9:28 AM, SZubik

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Tom Breloff
I stole an hour this morning and implemented this: https://github.com/tbreloff/ConcreteAbstractions.jl It's pretty faithful to my earlier description, except that the macros names are `@base` and `@extend`. Comments/criticisms welcome! On Tue, Sep 13, 2016 at 9:57 AM, Michael Krabbe Borregaard

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Tom Breloff
To be clear...I'm not trying to subvert anything! Just to make it easier and more natural to choose the best option. :) if it wasn't clear from my example, AbstractFoo would NOT be a concrete type, and couldn't be constructed. On Tuesday, September 13, 2016, Michael Borregaard

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Tom Breloff
I think #2 is the right solution, but I also wish there was a nicer syntax to do it. Here's how I'd probably tackle it... if I get around to it soon I'll post the implementation: @abstract type AbstractFoo bar::Int end @extend AbstractFoo type Foo end @extend AbstractFoo type Foobar

Re: [julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread Tom Breloff
Josef is really responsive with GR issues... you should open issues when you find anything: https://github.com/jheinen/GR.jl/issues Sometimes it's hard to know if it's a problem with the Plots backend code or with GR itself, but we'll both see the issues. GR is pretty mature, but I agree it's

[julia-users] macro: with

2016-09-07 Thread Tom Breloff
Hey all... I just threw together a quick macro to save some typing when working with the fields of an object. Disclaimer: this should not be used in library code, or in anything that will stick around longer than a REPL session. Hopefully it's self explanatory with this example. Is there a good

Re: [julia-users] Re: another new 2D plotting library for Julia

2016-08-31 Thread Tom Breloff
Hi Igor... any idea how your package compares to other libraries like GR.jl? What are the "killer features" which inspired you to work on this? On Wed, Aug 31, 2016 at 8:55 AM, Igor wrote: > Package name changed! now new package name: https://github.com/ig-or/ >

Re: [julia-users] Re: Can someone please update Winston?

2016-08-29 Thread Tom Breloff
The important points of this thread: - There hasn't been a tag in a year for Winston, but there have been fixes, including from Jeff and Stefan. Check out master and try again - You might consider other packages, because there's lots of options out there - Chris REALLY wants to

Re: [julia-users] AutoGrad port for Julia

2016-08-29 Thread Tom Breloff
Deniz thanks for the package. I plan on reviewing it this week to decide if it's a good fit for JuliaML. We're in the market for fast and well typed backprop. Mose: what version of julia are you on? Anonymous functions and closures are much faster on 0.5... In fact there should be no performance

Re: [julia-users] Unable to run Pkg.publish() due to bad credentials

2016-08-21 Thread Tom Breloff
My "solution" is to not use Pkg.publish. cd git remote add forked git checkout -b pub git push forked pub Then submit the PR from the webpage. I suspect two factor security makes this more complicated but I'd prefer to do these steps manually then lose the security. On Sunday, August 21,

[julia-users] Plots ecosystem

2016-08-16 Thread Tom Breloff
All: I'm compiling a bunch of images, gifs, and descriptions of community packages that use Plots/RecipesBase. If you have something that you'd like to include, please post a quick blurb and image here: https://github.com/tbreloff/Plots.jl/issues/439 The WIP page is here:

[julia-users] JupyterLab

2016-08-14 Thread Tom Breloff
Just saw this: http://blog.jupyter.org/2016/07/14/jupyter-lab-alpha/ Anyone tried it? Is Julia supported?

Re: [julia-users] overwrite function value

2016-08-11 Thread Tom Breloff
Can't you just change you pattern? f(x) = x+1 x = 1 x = f(x) On Thursday, August 11, 2016, digxx wrote: > Probably...I just need to get used to it. > >

Re: [julia-users] Numer of ones in bitstype

2016-08-11 Thread Tom Breloff
help?> count_ones search: count_ones count_zeros count_ones(x::Integer) -> Integer Number of ones in the binary representation of x. julia> count_ones(7) 3 On Thu, Aug 11, 2016 at 1:48 PM, jw3126 wrote: > I have a bitstype and want to know the number of ones in its

Re: [julia-users] Interactive Inline IJulia Plots

2016-08-11 Thread Tom Breloff
This is an old video, but it gets the point across. Plots with PlotlyJS is nice. https://www.youtube.com/watch?v=ctlRKL4CSIs On Thu, Aug 11, 2016 at 7:50 AM, Joseph Obiajulu wrote: > I was wondering if anyone know if interactive plots could be embedded > inline in

Re: [julia-users] Plots with scale bars

2016-08-10 Thread Tom Breloff
ots v0.8.2. > > On Wednesday, August 10, 2016 at 10:55:10 AM UTC-4, Tom Breloff wrote: > >> I threw this together really quickly... excuse the mess: >> >> using Plots >> >> # initial plot >> plot(linspace(10,34,100), 30rand(100,2).+[0 60], >>

Re: [julia-users] Combining composite type & PyPlot methods with @manipulate (regarding a port/extension of QuTiP's Bloch Sphere)

2016-08-10 Thread Tom Breloff
Hi Willem. If you make a Plots recipe for your type, you should be able to use your pseudocode by replacing 'render' with 'plot'. https://juliaplots.github.io/recipes/ On Wed, Aug 10, 2016 at 10:18 AM, Willem Hekman wrote: > Hello all, > > I have been spending my time

Re: [julia-users] Re: Plots with scale bars

2016-08-10 Thread Tom Breloff
I threw this together really quickly... excuse the mess: using Plots # initial plot plot(linspace(10,34,100), 30rand(100,2).+[0 60], leg=false, ylim=(-60,150), axis=nothing, xguide="Time(ms)", yguide="current(mA)") # lines and annotations x,y = 12,-40 plot!([x,x,x+10], [y+10,y,y],

Re: [julia-users] "Recommendadions" at julialang.org [for e.g. [Py]Plot] for say Julia 0.5

2016-08-09 Thread Tom Breloff
A) there's a discussion happening right now: https://github.com/JuliaLang/julialang.github.com/pull/399 On Tue, Aug 9, 2016 at 3:06 PM, Tamas Papp wrote: > I looked at almost all Julia plotting libraries again recently (last > week) for a project, running 0.5-rc1

Re: [julia-users] PyCall-ing Numba-dependent Libraries

2016-08-09 Thread Tom Breloff
Related to this, I can't render anything with my wrapper to OpenAI's gym, because of an llvm version clash inside pyglet. If you solve this problem in a semi-general way, please let us know! On Tuesday, August 9, 2016, Christoph Ortner wrote: > To reply to my own

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
plot recipes yet, but do you think that such a > scenario can be handled 'neatly' in a recipe while hiding all manual > tweaking from the end user? > > Thanks, > Islam > > _ > From: Tom Breloff <t...@breloff.com > <javascript:_e(%7B%7D,'cv

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
There's a bunchof ways to do this with Plots. Draw the lines and add annotations or add an inset subplot with labels? I'm not at a computer... maybe I'll throw together an example later. On Monday, August 8, 2016, Islam Badreldin wrote: > > > Hello, > > Is there a

Re: [julia-users] I cant view Plots in Juno - Atom IDE

2016-08-08 Thread Tom Breloff
I think this behavior should be changed to match the REPL... There have been too many questions like this On Monday, August 8, 2016, Chris Rackauckas wrote: > Use the command `gui()` > > On Sunday, August 7, 2016 at 9:32:29 PM UTC-7, Erick J Zagal wrote: >> >> I have this

Re: [julia-users] @animate @gif using plots

2016-08-07 Thread Tom Breloff
Something like 'legend = :topright' might work. On Sunday, August 7, 2016, digxx wrote: > Is it possible to position the legend manually in a plot(x,y,leg_pos=???) >

Re: [julia-users] @animate @gif using plots

2016-08-07 Thread Tom Breloff
Did you restart julia after adding ImageMagick? The errors are because it can't find either ImageMagick or ffmpeg, one of which is required to make gifs. On Sunday, August 7, 2016, digxx wrote: > Hey I reinstalled Julia and am now wondering why the animation part of >

Re: [julia-users] [ANN] Nemo 0.5 released

2016-07-30 Thread Tom Breloff
Marcus if you're looking to do reinforcement learning, I'd like collaboration on https://github.com/tbreloff/Reinforce.jl. I don't have docs yet but I got it hooked up to OpenAIGym.jl on friday for benchmarking. On Saturday, July 30, 2016, Alireza Nejati wrote: > Very

Re: [julia-users] Re: A workaround to use "." to access class member functions - is it unJulian?

2016-07-22 Thread Tom Breloff
In julia 0.4, I think this would be considered both slow and ugly. Since the improvements to anonymous functions in 0.5, it's now only ugly. :) I think you'll find a lot of benefit if you forget about OO-programming, and use multiple dispatch. "You must unlearn what you have learned!" On Fri,

Re: [julia-users] Pipeline interoperability with IOStream and IOBuffer

2016-07-22 Thread Tom Breloff
To be fair, he was told, in that issue, that julia-users was a more appropriate place to ask this type of question. On Friday, July 22, 2016, Steven G. Johnson wrote: > > > On Thursday, July 21, 2016 at 6:09:12 PM UTC-4, William Wong wrote: >> >> I'm trying to continue

Re: [julia-users] Help Julia win a performance comparison!

2016-07-21 Thread Tom Breloff
I had the same thought. Could just make a new AbstractArray which keeps a larger array and tracks the current usage. I bet it's 10 lines of code to make it generic. On Thursday, July 21, 2016, Christoph Ortner wrote: > > feels like one may want a little auxiliary

Re: [julia-users] Array of vectors in type definition

2016-07-19 Thread Tom Breloff
I think the important thing to know is that Array is an abstract type unless all parameters have a concrete value. Vector{T} is just a typealias for Array{T,1}, so Vector{Float64} is a concrete type because Array{Float64,1} has concrete parameters. However Array{Float64} is NOT fully specified...

Re: [julia-users] Re: Julia String Manipulation

2016-07-18 Thread Tom Breloff
julia> parse(Float64,ans[1]) 200.5 On Mon, Jul 18, 2016 at 3:33 PM, Yared Melese wrote: > Thanks for quick response, it works in most cases but when the number is > float, parse has problem as shown below > > How about when the number has decimal points for example > >

Re: [julia-users] Julia String Manipulation

2016-07-18 Thread Tom Breloff
Something like this? julia> search(exString, srchStr) 21:30 julia> exString[search(exString, srchStr)[end]+1:end] |> strip |> split 7-element Array{SubString{ASCIIString},1}: "+200" "people" "Starting" "number:" "5" "now" "16.5A_C" julia> parse(Int, ans[1]) 200 On Mon, Jul 18, 2016 at

Re: [julia-users] Suddenly PyPlot giving me grief

2016-07-13 Thread Tom Breloff
Have you tried using the conda local install? ENV["PYTHON"] = "" Pkg.build("PyPlot") Also it's not a real solution, but you could try Plots.jl with a different backend. It sounds like you have a system library clash of some sort, and in my experience those sorts of bugs will easily sink a week

[julia-users] [ANN] Plots ecosystem

2016-07-12 Thread Tom Breloff
Hi everyone. I wanted to let you know about some changes that are happening with the soon-to-be-tagged 0.8 version of Plots. In an attempt to organize the ecosystem and thin out the core of Plots, there are a few relatively new packages, all within the JuliaPlots organization: PlotUtils.jl:

Re: [julia-users] hashing floating point zeroes

2016-07-09 Thread Tom Breloff
Yes. They are different numbers. In a way, negative zero represents "a really small negative number" that can't be represented exactly using floating point. On Saturday, July 9, 2016, Davide Lasagna wrote: > Hi, > > I have just been bitten by a function hashing a custom

Re: [julia-users] Dear Sublime Text Users

2016-07-09 Thread Tom Breloff
You has me at LaTeX. :) Looking forward to checking this out. On Saturday, July 9, 2016, Randy Lai wrote: > Hi all Sublime Text uers, > > > I have just created a tiny package Julia-Unicode > to help inserting LaTeX and >

[julia-users] IJCAI

2016-07-08 Thread Tom Breloff
Will any julians be in NYC for IJCAI or AGI-16 this week (and next)?

Re: [julia-users] More on Macros

2016-07-05 Thread Tom Breloff
I think you're confused about several things. First, yes a Void is expected, because that's what a macro definition will yield. - It is almost always a bad idea to call "eval(parse(...))". You'd probably doing something wrong if you ever feel the need to do that. - "Parse time" is not always

Re: [julia-users] Question on Macros

2016-07-05 Thread Tom Breloff
You ask why the "@" symbol is needed, and then point out that you can have a macro and function of the same name, and that might lead to subtle mistakes. I think you just answered your own question! Macros are called at parse time, and it's valuable to have a clear syntax to distinguish from

Re: [julia-users] wish a sinusoidal

2016-06-29 Thread Tom Breloff
Again... 'plot' creates a new Plot, and 'plot!' adds to or updates an existing Plot. Your second plot command need an exclamation point. On Wednesday, June 29, 2016, Henri Girard wrote: > Hi, > I can't get a sinusoidal like with pyplot, I got it once but I lost my >

Re: [julia-users] how to get rid of axis in Plots ?

2016-06-28 Thread Tom Breloff
Try 'ticks=nothing, border=nothing' On Tuesday, June 28, 2016, Henri Girard wrote: > I don't see any command to get rid of axis in Plots or hide them > I tried axis=false axes =false idem with none but nothing works... > >

[julia-users] Re: Plots with Plots

2016-06-28 Thread Tom Breloff
gt; I thaught it would be easy but I was wrong ! > Plots has nicer environment than pyplot (I like your dark one with black > background I can't make it with pyplot > > > > > > > > > Le vendredi 24 juin 2016 17:37:15 UTC+2, Tom Breloff a écrit : >

[julia-users] Re: Plots with Plots

2016-06-28 Thread Tom Breloff
I think you must be looking at an old example? Can you tell me where you found it so I can update? '_apply_recipe' doesn't exist, and you shouldn't have to import it anyways. Let me know what your end goal is and I can help. I understand the docs need better organization. On Tuesday, June 28,

Re: [julia-users] Plots with Plots

2016-06-27 Thread Tom Breloff
For anyone interested, I made a short demo of what's possible with the GLVisualize backend in Plots, after hacking at JuliaCon with Simon. Plots, Interact, and GLVisualize... oh my! https://www.youtube.com/watch?v=mRvUhLpUq88 I just tagged a new version of Plots... until it's merged you'll need

Re: [julia-users] Multiple JULIA_PKGDIR directories in a hierarchy for supporting a shared environment

2016-06-27 Thread Tom Breloff
Well presumably it could do something that the import logic already does, but I appreciate that it is complex logic. David: @wildart is the person to follow for the future of package management. On Mon, Jun 27, 2016 at 2:02 PM, Stefan Karpinski wrote: > You can use

Re: [julia-users] using in try catch block

2016-06-27 Thread Tom Breloff
Yichao: is there an alternative "is_installed" definition that would check the load path? Lets assume I don't actually want to import it, just check. On Mon, Jun 27, 2016 at 12:48 PM, Yichao Yu <yyc1...@gmail.com> wrote: > > On Jun 27, 2016 12:20 PM, "Tom Brelof

Re: [julia-users] using in try catch block

2016-06-27 Thread Tom Breloff
Here is what I use for this sort of logic: function is_installed(pkgstr::AbstractString) try Pkg.installed(pkgstr) === nothing ? false: true catch false end end On Mon, Jun 27, 2016 at 12:12 PM, David Anthoff wrote: > I’m trying to use

Re: [julia-users] Row/column iterators?

2016-06-27 Thread Tom Breloff
be > best to > put it in a package first, and think about adding to Base later. (But I'm > not > opposed to sticking it in now, either.) > > Best, > --Tim > > On Monday, June 27, 2016 9:42:33 AM CDT Tom Breloff wrote: > > I find myself frequently wanting to do somethin

Re: [julia-users] Row/column iterators?

2016-06-27 Thread Tom Breloff
Thanks for the link! I'll continue the discussion there. On Mon, Jun 27, 2016 at 10:06 AM, Kristoffer Carlsson wrote: > https://github.com/JuliaLang/julia/issues/14491

Re: [julia-users] preANN: ArbFloats. the sequel. (extended precision *values* as floating point numbers)

2016-06-25 Thread Tom Breloff
Thanks Jeffrey. Starred and followed. For those following from a distance, ArbFloats (IMO) are a *much* faster alternative to "fixed-precision Unums 1.0", and could nicely form the basis of interval arithmetic with open/closed endpoints, paving/uboxing algorithms, and more. On Sat, Jun 25, 2016

[julia-users] Plots with Plots

2016-06-24 Thread Tom Breloff
I just uploaded the IJulia notebook which was my JuliaCon workshop: https://github.com/tbreloff/ExamplePlots.jl/blob/master/notebooks/plotswithplots.ipynb . You'll need to be on master or dev to follow along until I tag 0.7.3. The documentation is getting more and more complete, so I recommend

Re: [julia-users] Achitecture for solving largish LASSO/elasticnet problem

2016-06-24 Thread Tom Breloff
You could consider streaming data to multiple instances of OnlineStats.jl in parallel. There should be no problem with memory usage as long as you don't explicitly load your whole data set at once. On Friday, June 24, 2016, Matthew Pearce wrote: > Hello > > I'm trying to

Re: [julia-users] pyplot how to change bground color ?

2016-06-24 Thread Tom Breloff
When you say "doesn't work for pyplot", what have you tried? On Friday, June 24, 2016, Henri Girard wrote: > Hi, > I didn't find anything to modify background in pyplot, it's so easy in > plots but that doesn't work for pyplot, even maplotlib command ? > Any help ? > HG

Re: [julia-users] JuliaCon birds of a feather

2016-06-22 Thread Tom Breloff
d, Jun 22, 2016 at 1:19 PM, Tom Breloff <t...@breloff.com > <javascript:_e(%7B%7D,'cvml','t...@breloff.com');>> wrote: > >> For those at JuliaCon today, I'm organizing a dinner to discuss "The >> future of Machine Learning and Data Science in Julia". Tonight

Re: [julia-users] GraphViz.jl alternative on windows

2016-06-22 Thread Tom Breloff
I have a basic graph recipe using a spectral algorithm in PlotRecipes... You can see a couple examples in the readme. It's not full featured but might fit your needs. On Wednesday, June 22, 2016, David Anthoff wrote: > Hi, > > > > GraphViz.jl doesn’t seem to work on

Re: [julia-users] Re: JuliaCon birds of a feather

2016-06-22 Thread Tom Breloff
...@gmail.com> wrote: > +1, definitely interested in some of those subjects > > On Sunday, June 19, 2016 at 11:29:06 PM UTC-4, Tom Breloff wrote: >> >> Time to dredge this topic up again! With JuliaCon only a couple days >> away, I want to make sure we take adva

Re: [julia-users] Re: JuliaCon birds of a feather

2016-06-19 Thread Tom Breloff
Time to dredge this topic up again! With JuliaCon only a couple days away, I want to make sure we take advantage of getting people in the same room to collaborate. I'm interested in the following topics, and I'm ready to organize lunches, dinners, and/or drinks to discuss: - graphics in Julia -

Re: [julia-users] Plots : subplots ?

2016-06-17 Thread Tom Breloff
http://plots.readthedocs.io/en/latest/layouts/ On Fri, Jun 17, 2016 at 2:46 PM, Henri Girard wrote: > HI, > I am trying to make a subplot in Plots but I can't ... Is it like with > pyplot ? > Help needed > Regards > HG >

Re: [julia-users] Plots 2 pic ?

2016-06-16 Thread Tom Breloff
The double display should be fixed if/when a PyPlot PR is merged: https://github.com/stevengj/PyPlot.jl/pull/223 ...But I think Steven's been busy. In the meantime you could clone my fork and checkout my 'tb_dispfix' branch. On Thursday, June 16, 2016, Henri Girard

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Tom Breloff
I just copy/pasted your code into IJulia and it seems to work: ​ Is the function wrong? I'm a little confused. On Thu, Jun 16, 2016 at 9:13 AM, Henri Girard wrote: > My new tentative (which is not working) > using Plots > R=1000;L=1/pi*360E-2;C=1/(pi*360E+2) >

Re: [julia-users] questions for ploting 3D graph in julia

2016-06-16 Thread Tom Breloff
It crashed? I'm patiently waiting for your issue to be posted ;) Can you post what you have so far? I could take guesses on what your input data looks like but that would waste both our time. Also what sort of 3d graph? Point cloud?wireframe with contours? On Thursday, June 16, 2016, SHORE SHEN

Re: [julia-users] Plots/pyplot

2016-06-14 Thread Tom Breloff
For the first one, you'll need to wrap that tuple: `plot(rand(10), xaxis=((0,5),))` Lesson... axis is expecting a tuple of args, so if you give it one it'll try to do something with each arg. For the second one, it's updating the tick marks, because that's what it assumes a list of numbers

  1   2   3   4   5   6   >