Hi,
just installed 0.5.0 and have noticed something I seem to remember was
discussed here a few times, but can't remember exactly what it was.
I'm wondering what is now the best way to get a row vector from an array. I
ask because I have something of the form
X = [[1,1,1] [1,-1,-1]]
but then
Oh, thanks...
On Monday, September 26, 2016 at 3:57:50 PM UTC+2, Yichao Yu wrote:
>
> On Mon, Sep 26, 2016 at 9:49 AM, Ferran Mazzanti
> > wrote:
> > Hi,
> >
> > just installed 0.5.0 and have noticed something I seem to remember was
> > discussed here a f
not clean.
Thanks a lot,
Ferran.
On Thursday, August 18, 2016 at 10:47:27 AM UTC+2, Ferran Mazzanti wrote:
>
> Dear all,
>
> looks like lots of messing around with versions had rendered PyPlot
> unusable in 0.4.6 under OSX (at least).
> Now I need to do some work that requires
Nobody is using PyPlot under OSX, please?
Best,
Ferran.
On Wednesday, September 28, 2016 at 10:35:58 AM UTC+2, Ferran Mazzanti
wrote:
>
> Hi,
>
> it seems that PyPlot is still broken in 0.5.0 and OSX, at least
> Mavericks... Anybody else has faced this problem? If yes, how can I
a and then reinstalled julia
0.5.0 and PyPlot and that worked out well again :)
Thanks for your kind help,
Ferran.
On Thursday, August 18, 2016 at 10:47:27 AM UTC+2, Ferran Mazzanti wrote:
>
> Dear all,
>
> looks like lots of messing around with versions had rendered PyPlot
> unusable in
Hi,
I'm gathering interest in Plots.jl in order to make complex plotting
structures. Just as an example, I have a set of data (called y) and some
operations performed on it, stored in arrays of obvious names y2, logy,
expy etc...
I have managed to create something that displays one curve per p
book up
> for you to have a look at here:
> https://gist.github.com/swt30/54701d09cfa479dab78a5bc2fa857fd7
>
> Cheers,
> Scott
>
> On Tuesday, 8 November 2016 09:20:39 UTC, Ferran Mazzanti wrote:
>
>> Hi,
>>
>> I'm gathering interest in Plots.jl in
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 structure but with an additional plot at the bottom,
spanning the whole width and a smaller height) and fail. I can get it to
wo
hings work well...
So shall I understand there is some sort of bug in the codem, then?
Best,
Ferran.
On Friday, November 11, 2016 at 12:10:02 PM UTC+1, Tom Breloff wrote:
>
> "@layout [a grid(2,2); b]" should work
>
> On Friday, November 11, 2016, Ferran Mazzanti > wrot
It is a minor variation of the example given by Scott
for some data set y, cosy, y2, sqrty, siny, logy (doesn't matter the
values, could be random)
plot_1 = plot([y cosy],
title = "Data y",
xlims = (0,10),
ylims = (-0.1,1.1),
grid = true,
xlabel = "Iteration",
ylabel
mmand only
>>> supplies 5. When I run your example (on the development branch of Plots) I
>>> get an error because of that. Have you tried the dev branch?
>>> `Pkg.checkout("Plots, "dev")`, restart julia and re-run it.
>>>
>>> Scott
>>>
&g
That's not the point but it doesn't really matter :)
On Tuesday, November 15, 2016 at 12:41:54 PM UTC+1, Tom Breloff wrote:
>
> Serious "give a mouse a cookie syndrome". You can do what you want by
> calling 'plot_6 = deepcopy(plot_5)' first.
>
> O
Hi again,
I'm trying to use plots.jl for final plots ready for publication in
scientific papers, and I was wondering what is the easiest way to write
special strings in labels of plots.
For instance, what LaTeX would render in $10^{-10}$, or include Angstrom
symbols, or subscripts as in $W_{ij}
...and please notice that I'm not looking for explicit LaTeX suppport. Just
wanted to know if there is any way to add special characters and subscripts etc.
Thanks again,
Ferran.
One thing that is not particular from discourse but that also affects it...
It turns out that I read most of the posts from my ipad, and my eyes are
not the ones that used to be. So I like to zoom in, as I was doing with
google groups. Apparently, this can't be done in discourse (as in many
oth
Hi folks,
I'm new to Julia (but not to Python) and can't find he right way to use
PyPlot as I do in Python. In short, I have a program that should display a
plot, wait for the user to close the plot, then show a second plot and g on
running. But it is not doing that: it just merges the two plot
Surpsisingly that didn't work either, but shows a strange ehaviour instead:
three figure frames (figure boxes) are opened: figure 1 has once again both
plots merged, while figures 2 and 3 show the canvas with nothin (fig.3) and
the canvas with the axes (fig.2), but the plots themselves are merge
PyPlot.plot(x,y2,color="blue",marker="*",linestyle="dashed")
PyPlot.show()
...so the key was the PyPlot.ioff() really. Thanks Steven and thanks toyou
guys who provided help also :)
On Sunday, April 26, 2015 at 3:57:36 AM UTC+2, Steven G. Johnson wrote:
>
Hi folks,
I'm experiencing problems trying to use Winston under Julia 0.3.9 in my
Linux machine. I just grabbed from the internet an exemple that
should work, something like the code I paste at the end of the post. This
is similar to somthing simpler I tried to use, to no avail. The problem
come
23, 2015 at 12:24:18 PM UTC+2, Ferran Mazzanti wrote:
>>
>> Hi folks,
>> I'm experiencing problems trying to use Winston under Julia 0.3.9 in my
>> Linux machine. I just grabbed from the internet an exemple that
>> should work, something like the code I paste at
Hi,
I have a simple question: is it possible to feed printf() a list with a
variable number of arguments? Specifically I want to print a formatted list of
numbers contained in an arrary, but I can't tell in advance how many elements
does the array contain. Is there an easy way to do that, or sho
Thanks for the info. Actually my question comes from old fortran style, where I
can write something of the form
Write(1,'1000f12.6') a
where a is an array. The string inside the write function says I can print 1000
doubkes in 12 characters with 6 decimals. So the string is a constant literal,
an
julia> a = 1e5*rand(1000)
> julia> for i in a
>@printf("%12.6f\n", i)
>end
> 74708.038385
> 71244.774457
> 5057.229038
> 3761.297034
> ...
>
> Remember that loops are fast in Julia...
>
> Kaj
>
>
>
> On Tuesday,
Hi folks,
I have a little mess with the way arrays are being handled in Julia. I come
from C and fortran95 and I know I can do the following things there using
pointers: imagine I have a big array A. Then I can use pointers to define W
a subsection of A, such that if I modify W then A is modifi
, Ferran Mazzanti wrote:
>
> Hi folks,
>
> I have a little mess with the way arrays are being handled in Julia. I
> come from C and fortran95 and I know I can do the following things there
> using pointers: imagine I have a big array A. Then I can use pointers to
> define W a
Dear all,
I was wonder if it is possible to do in Julia what I can do in other
languages, such as define a user type, as for instance
type Point
x::Float64
y::Float64
end
and then define a new varible of that type, but do not initialize it, as in
z::Point
which obviously doesn't work (unle
want to define outer
> constructors.
>
> By the way, you can always give an arbitrary initial value to Point, and
> then do what you like. I think this is the most economical way for you.
>
>
>
>
>
> On Friday, September 4, 2015 at 6:49:47 PM UTC+2, Ferran Mazzanti wr
Hi folks,
this is probably very easy to do, but probably there are optimal ways to
do it that escape me. What I would like to do is the following kind
of operation: suppose I have a set of 3-element vectors labelled r1,
r2,...,rN, and a set of matrices M1, M2,...,MN. FOr the sake of simplicity
Dear all,
I could use some help here, because I can't believe I'm not able to easily
print formatted numbers under Julia in a easy way. What I try to do is to
write a function that, given a vector, prints all its components with a
user-defined format. I was trying something of the form
functio
d use, but
come on... printing number os definitely not one of those.
Just my 2cents :)
On Monday, September 21, 2015 at 10:52:52 AM UTC+2, Michael Hatherly wrote:
>
> https://github.com/JuliaLang/Formatting.jl might help.
>
> — Mike
>
> On Monday, 21 September 2015 10:46:31
Hi folks,
I start to learn how painful thinks can get when you miss different things
from different packages... I feel somehow miserable.
I try to install Winston, which needs Cairo, etc... on my OSX Yosemite box.
When I issue
Pkg.add("Winston") for exemple I get the following:
INFO: Installing
Hi folks,
this is an IJulia related question: I have updated to Julia 0.4.0 and now
*some* of my old IJulia notebooks do not load properly anymore -when I try
to load them,
IJulia complains stating that t can not find the proper Julia kernel for
it. And then it loads the file, but converts it t
wrote:
>
> Hi Ferran,
>
> I upgraded to Jupyter notebooks before doing the switch to 0.4, and I
> haven't had any issue, except that Shift+Tab no longer works...
>
> On Sunday, October 18, 2015 at 8:09:08 AM UTC-4, Ferran Mazzanti wrote:
>>
>>
>> a) Are IJu
...but that's *exactly* the problem: with my old notebooks, for which I do
not have the (old) kernel installed anymore, IJulia refuses to open it
properly complaining that I can not find the right kernel, and opens it in
*kind of* text mode.
So no, I wish i could do that, but it is not working.
Hi folks,
using Linux Mint 17.1 here. I upgraded to julia 0.4.0 and now this simple
code, taken from the web and tested on previous versions,
using PyPlot
x = randn(1000) # Values
nbins = 50 # Number of bins
fig = figure("pyplot_histogram",figsize=(6,6)) # Not strictly required
ax = axes() # N
Hi folks,
I try to create an array of constant float64 values. Something I did was:
a = 0.8;
Nb = 100;
p = zeros(Nb)
for i in 1:Nb
p[i] = a/Nb
end
and typeof(p) returns
Array{Float64,1}
so far, so good :)
But now I do the following instead to shorten things:
a = 0.8;
Nb = 100;
p = [ a/Nb for
>
> h = PyPlot.plt[:hist](x,nbins)
>
>
>
> On Monday, October 26, 2015 at 11:28:35 AM UTC+1, Ferran Mazzanti wrote:
>>
>> Hi folks,
>>
>> using Linux Mint 17.1 here. I upgraded to julia 0.4.0 and now this simple
>> code, taken from the web and tested on
]
typeof(p)
still produces Array{Any,1}
On Monday, October 26, 2015 at 11:35:06 AM UTC+1, Ferran Mazzanti wrote:
>
> Hi folks,
>
> I try to create an array of constant float64 values. Something I did was:
>
> a = 0.8;
> Nb = 100;
> p = zeros(Nb)
> for i in 1:Nb
> p[
quot;)
>
> whereas in Python the last step would have been my_dna.find("ACT")"
>
> On Monday, October 26, 2015 at 11:38:41 AM UTC+1, Ferran Mazzanti wrote:
>>
>> That worked, thanks :)
>>
>> But this syntax I can not understand... where can I find docu
Dear all,
I use IJulia from time to time. To do that I open the julia REPL in the
terminal, issue
using IJulia
notebook()
..and the web browser opens and I am ready to go. But when I want to
finish the IJulia session,
I dont see a 'close' button in the file manager of Jupyter, so I have to
Hi folks,
since I'm in the quantum mechanics world and I'm moving towards Julia, I
was wondering if there's a simple way (package?) that anybody knowa
which allows to evaluate Clebsch-Gordan coefficints or Wigner 3-j symbols.
I'm actually trying to get integrals of three Spherical Harmonics done
Hi,
probably simple question but can't find the answer. I have a vector of
vectors like this one
chi2_mods
3-element Array{Array{Float64,1},1}:
[7245.87,7242.98,7240.08,7237.18,7234.28,7231.39,7228.49,7225.59,7222.7,7219.81
…
0.0299669,0.0251945,0.0206114,0.0162815,0.0130703,0.00927407,0.
gt; 0.722769 0.147476 0.638619
>
> However, if you are worried about performance then creating an array of
> the right size and filling it in a loop might be better.
>
> On Tue, 2016-06-28 at 10:03, Ferran Mazzanti > wrote:
> > Hi,
> >
> > probably si
...but then is Julia *really* fast ? I guess that depends on what you
compare with. I've been doing lots of numerics for the last 20+ years and
for that I use fortran. This is *damn* fast, even more if you use something
like the Intel compiler. Fortran many times performs better than C, and the
btw, I use Julia also, and I really like it very much :)
Dear Zhong,
I understand your points very well... as I said I also love and use Julia.
But at this point I understood that the *only* thing that was discussed was
speed. And in that matter, a factor 1.6 is still a big difference. In my
case I'm willing to use it instead of fortran right now, al
Guys,
today I've tried to include a vector of vectors as part of atype
definition, something like
type caw
legs :: Int64
spots :: Array{Float64}[]
end
but that fails. Shall I understand that it is not possible to define that
in a type definition? I just wanted to include a structrure tha
Hi Mauro,
your solution seems to work... though I do not understand exactly why :)
Even Vector{Array{Float64}} works.
Thanks for your kind help :)
Ferran.
and now it does not complain
On Monday, July 18, 2016 at 5:13:23 PM UTC+2, Ferran Mazzanti wrote:
>
> Guys,
>
> today I've tried to include a vector of vectors as part of atype
> definition, something like
>
> type caw
>legs :: Int64
>spots :: Array{Float64}
Hi,
mostly showing my astonishment, but I can even understand the figures in
this stupid parallelization code
A = [[1.0 1.0001];[1.0002 1.0003]]
z = A
tic()
for i in 1:10
z *= A
end
toc()
A
produces
elapsed time: 105.458639263 seconds
2x2 Array{Float64,2}:
1.0 1.0001
1.0002
:50 PM UTC+2, Chris Rackauckas wrote:
>
> I wouldn't expect that much of a change unless you have a whole lot of
> cores (even then, wouldn't expect this much of a change).
>
> Is this wrapped in a function when you're timing it?
>
> On Thursday, July 21, 2016
mean.
>
> That said, that doesn't explain your speed up completely, you should also
> make sure that each part of your script is wrapped in a function and that
> you 'warm-up' each function by running it once before comparing.
>
> Cheers,
> Nathan
>
Nathan,
the execution of these two functions gives essentially the same timings, no
matter of many processes I have added with addprocs()
Very surprising to me...
Of course I prefer the speeded-up version :)
Best,
Ferran.
On Thursday, July 21, 2016 at 6:40:14 PM UTC+2, Nathan Smith wrote:
>
>
t;> I've tried things like
>>
>>
>> push!(z.spots,[1.0])
>>
>>
>> but then I get
>>
>>
>> LoadError: UndefRefError: access to undefined reference
>> while loading In[30], in expression starting on line 1
>>
>>
>&g
Thanks Jussi for being so helpful :)
I'll try that and check. Then I'll carefully think about all this to see
what can I learn from here :)
Best regards,
Ferran.
Ok all tests seem to fail, sorry. Jossi doing what you say directly works,
but trying to wrap up things in a type deffinition either fails, or fails
when I try to push!() things. Could you please be so kind to fill the whole
example? Something like:
type croc()
teeth :: Int64
legs :: Int64
Hi Roger,
that makes a lot of sense to me... I'll be careful also with globals. Still
if the mechanism is the one you mention, there is something fuzzy here as
the timmings I posted are right, human-wise, in the sense that the reported
times were the ones I actually had to wait in front of my c
Hi,
just erased everything that is julia-related (including julia itself),
removed .julia etc... and installed from scratch 0.4.6. WHen I tried to
installed PyPlot and issued the
using PyPlot
command I got this:
ERROR: InitError: PyError (:PyImport_ImportModule)
ValueError('unknown locale: UT
Dear all,
looks like lots of messing around with versions had rendered PyPlot
unusable in 0.4.6 under OSX (at least).
Now I need to do some work that requires its use so I need to have it up
and working. Could anybody please let me know
if it is possible to revert to a previous working version,
Hi again,
thanks all of you for the replies. And specially to Bart, who gave me the
precise information. I just did:
Pkg.pin("PyCall",v"1.4.0")
Pkg.pin("PyPlot",v"2.1.1")
Pkg.build("PyPlot")
and from there
using PyPlot
did the trick :)
Cheers,
Ferran.
Yes of course... how do I do that?
Thanks,
Ferran.
On Thursday, August 18, 2016 at 8:29:08 PM UTC+2, Steven G. Johnson wrote:
>
> Please file an issue if the latest version of PyCall (or PyPlot) is
> failing for you.
>
Hi folks,
I know this is a very naive question as such but I can't make me a complete
picture of this world. I would like to be able to program Julia code for
the nVidia GPU's supporting CUDA: What is the best/easiest way to do that?
Is it possible to write all the code (including the GPU part)
Hi folks,
I was wondering if it is possible to use in a simple way cyclic arrays in
Julia? What I'm after is sometbing that understands that the next element in
a[] after end is a[1], so a[end+1]=a[1], a[end+2]=a[2] etc... I know I can
index the array with the remainder operator % to achieve th
Hi folks,
probably a stupid question but can't find the answer, so please help if you
can :)
I would like to evaluate a if.. else.. statement on a whole array. Actually
it's a bit more complicated, as I have a function that
previously was
function u2(x)
return 0.5*(u2_0(x)+u2_0(Lbox-x))-u2_
a> [ xi>5 ? 0:blah for xi in x]
> 10-element Array{Any,1}:
> 1
> 1
> 1
> 1
> 1
> 0
> 0
> 0
> 0
> 0
>
>
> On Wed, 2016-02-10 at 11:58, Ferran Mazzanti > wrote:
> > Hi folks,
> >
> > probably a stupid que
Hi folks,
probably a most stupid question here :) Is there a way to get a string with
the name of the Julia program one is running?
I ask because I usually write output files starting with a header stating
something like "# Results generated by the program " followed by the
program name. So ho
you mean the name of the file where the
> function is defined
>
> println(@__FILE__)
>
> makes the job.
>
> On Friday, April 8, 2016 at 10:53:14 AM UTC+2, Ferran Mazzanti wrote:
>>
>> Hi folks,
>>
>> probably a most stupid question here :) Is there a
Dear all,
I'm sure this is a simple question but can't find out the right information
(manuals?) for Pyplot interfacing in Julia...
I want to compare several (similar) figures in the same plot, and some of
them should be plotted with lines (solid, dashed...) and
colors, while other should be pl
68 matches
Mail list logo