Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a background image with FramedPlot() #180

Open
mszlosser opened this issue Nov 12, 2014 · 1 comment
Open

Using a background image with FramedPlot() #180

mszlosser opened this issue Nov 12, 2014 · 1 comment

Comments

@mszlosser
Copy link

using TestImages, Winston

img = testimage("mandrill")
p1 = FramedPlot()
add(p1, Points(10, 20, color="red"))
add(p1, Image(img)) # ???
file(p1, "myImage.png")

@nolta
Copy link
Member

nolta commented Nov 14, 2014

This needs better support, but for now:

using Color, TestImages, Winston

img = testimage("mandrill")
p1 = FramedPlot()
rawimg = flipud(convert(Array{UInt32}, convert(Array{RGB24}, img)))
add(p1, Image((0,30), (0,30), rawimg))
add(p1, Points(10, 20, color="red"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants