It's possible you have an old version... try doing Pkg.checkout("Plots").
I'll get around to tagging a new version soon.

On Tue, Mar 8, 2016 at 10:47 AM, <[email protected]> wrote:

>
>
> On Tuesday, March 8, 2016 at 9:41:14 AM UTC-6, [email protected] wrote:
>>
>> Thank you very much Tom! However, my plot is not showing the colors, it's
>> just black, do you know what can be happening?
>>
>> On Tuesday, March 8, 2016 at 9:33:39 AM UTC-6, Tom Breloff wrote:
>>>
>>> You can almost copy that verbatim with PyPlot.jl, or here's the same in
>>> Plots:
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> On Tue, Mar 8, 2016 at 9:51 AM, <[email protected]> wrote:
>>>
>>>> Hello Julia Users,
>>>>
>>>> PyPlot has some modules related to color plots. However the
>>>> documentation in Julia don't address the following application (in Python):
>>>>
>>>> import numpy as npimport matplotlib.pyplot as plt
>>>>
>>>> x = np.linspace(0, 20, 100)
>>>> y = np.sin(x)
>>>> z = x + 20 * y
>>>>
>>>> scaled_z = (z - z.min()) / z.ptp()
>>>> colors = plt.cm.coolwarm(scaled_z)
>>>>
>>>> plt.scatter(x, y, marker='+', edgecolors=colors, s=150, linewidths=4)
>>>> plt.show()
>>>>
>>>>
>>>>
>>>>
>>>> Does anyone know how can I define the "colors" as above and plot in
>>>> Julia the same example?
>>>>
>>>> Any information is really helpful.
>>>>
>>>> Thank you very much.
>>>>
>>>
>>>

Reply via email to