[julia-users] Re: LaTeX type font for axes ticks?
Your suggestion works fine, thank you. Am Sonntag, 21. Dezember 2014 16:22:13 UTC+1 schrieb Christoph Ortner: This is not exactly what you want but it may be close enough: The line plt.rc(font, family=serif) changes the figure to a serif font, which looks very similar to latex. Christoph
[julia-users] LaTeX type font for axes ticks?
Hi, I am wondering if there is a simple way to have LaTeX type fonts for axes ticks. I managed to have LaTeX fonts for the Labels, in order to have a consistent graph it would be nice to have ticks with the same fonts. Best, Markus
[julia-users] Re: How to generate subplots with 2D and 3D plots?
Thank you Daniel, I just tried your suggestion. Seems to work fine. However the font sizes (of axes ticks) do not automatically turn smaller but have to be adjusted manually. I think I will manage to fix this ;). Best, Markus Am Sonntag, 23. November 2014 21:27:22 UTC+1 schrieb Daniel Høegh: This works: ax = fig[:add_subplot](2,1,1, projection = 3d) xgrid = repmat(x',n,1) ygrid = repmat(y,1,n) ax[:plot_surface](xgrid, ygrid, z, rstride=2,edgecolors=k, cstride=2, cmap=ColorMap(gray), alpha=0.8, linewidth=0.25) xlabel(X) ylabel(Y) subplot(212) ax = fig[:add_subplot](2,1,2) cp = ax[:contour](xgrid, ygrid, z, colors=black, linewidth=2.0) ax[:clabel](cp, inline=1, fontsize=10) xlabel(X) ylabel(Y) My greatest source of good examples is always: http://matplotlib.org/gallery.html, and there is a good gist that shows how to use PyPlot in julia: https://gist.github.com/gizmaa/7214002
[julia-users] How to generate subplots with 2D and 3D plots?
Hey guys, I am a Julia beginner and I try to learn the language by writing simple sample code. Currently I want to generate a simple figure with subplots where the first [1,1] is a contour plot and the second one [1,2] should be a 3D Surface plot. I managed to generate a subplot with 2 2D plots but not a mixed one. I have some experience with Matlab but it seems to me that plotting works a bit different compared to Matlab. I use the PyPlot/Matplotlib package. Can someone help me out? Maybe someone can help me to better understand plotting in Julia (with PyPlot/Matplotlib). Best Markus p.s. I attached some sample code generating the figures. sample.jl Description: Binary data
[julia-users] Re: How to generate subplots with 2D and 3D plots?
Thank you very much. I think I will try your suggestion later this day. Am Sonntag, 23. November 2014 21:27:22 UTC+1 schrieb Daniel Høegh: This works: ax = fig[:add_subplot](2,1,1, projection = 3d) xgrid = repmat(x',n,1) ygrid = repmat(y,1,n) ax[:plot_surface](xgrid, ygrid, z, rstride=2,edgecolors=k, cstride=2, cmap=ColorMap(gray), alpha=0.8, linewidth=0.25) xlabel(X) ylabel(Y) subplot(212) ax = fig[:add_subplot](2,1,2) cp = ax[:contour](xgrid, ygrid, z, colors=black, linewidth=2.0) ax[:clabel](cp, inline=1, fontsize=10) xlabel(X) ylabel(Y) My greatest source of good examples is always: http://matplotlib.org/gallery.html, and there is a good gist that shows how to use PyPlot in julia: https://gist.github.com/gizmaa/7214002
[julia-users] Add new packages
Hey advanced julia users, I am new to the julia programming language and just started to learn it. I just set up a new Linux Mint installation and installed julia by adding the ubuntu repository as suggested on the website. As a first step I wanted to install PyPlot by typing Pkg.add(PyPlot). I get an error message (see attached file). Can you help me with my problem because I am really interested in learning the language. Best, Markus https://lh3.googleusercontent.com/-DibYx6wzpZM/VEfm-rfl3CI/ADU/dMVb9vLUnys/s1600/jl.jpg
Re: [julia-users] Re: Add new packages
The folder /home/markus/.julia is empty. Can I fix this somehow? Am Mittwoch, 22. Oktober 2014 19:30:43 UTC+2 schrieb Stefan Karpinski: Although that should be done for you. Does /home/markus/.julia/v0.3 exist? If so, what's in it? On Wed, Oct 22, 2014 at 1:28 PM, Jake Bolewski jakebo...@gmail.com javascript: wrote: run Pkg.init() first if the metadata does not exist. On Wednesday, October 22, 2014 1:20:42 PM UTC-4, Markus Roth wrote: Hey advanced julia users, I am new to the julia programming language and just started to learn it. I just set up a new Linux Mint installation and installed julia by adding the ubuntu repository as suggested on the website. As a first step I wanted to install PyPlot by typing Pkg.add(PyPlot). I get an error message (see attached file). Can you help me with my problem because I am really interested in learning the language. Best, Markus https://lh3.googleusercontent.com/-DibYx6wzpZM/VEfm-rfl3CI/ADU/dMVb9vLUnys/s1600/jl.jpg
[julia-users] Re: Add new packages
https://lh3.googleusercontent.com/-5KCNLVgLr-c/VEftxqSt4cI/ADk/gaj_ZhVH4qs/s1600/jl2.jpg Just tried your suggestion. Got another, probably similar, error message (see attached). Am Mittwoch, 22. Oktober 2014 19:28:44 UTC+2 schrieb Jake Bolewski: run Pkg.init() first if the metadata does not exist. On Wednesday, October 22, 2014 1:20:42 PM UTC-4, Markus Roth wrote: Hey advanced julia users, I am new to the julia programming language and just started to learn it. I just set up a new Linux Mint installation and installed julia by adding the ubuntu repository as suggested on the website. As a first step I wanted to install PyPlot by typing Pkg.add(PyPlot). I get an error message (see attached file). Can you help me with my problem because I am really interested in learning the language. Best, Markus https://lh3.googleusercontent.com/-DibYx6wzpZM/VEfm-rfl3CI/ADU/dMVb9vLUnys/s1600/jl.jpg
Re: [julia-users] Re: Add new packages
Just installed git via sudo apt-get install git-core After that I was able to install PyPlot. Thank you very much! Maybe it is worth putting a note on git to your webiste (just for the less sophisticated users as I am ;)) Am Mittwoch, 22. Oktober 2014 19:53:18 UTC+2 schrieb Stefan Karpinski: Does git exist? On Wed, Oct 22, 2014 at 1:51 PM, Markus Roth marr...@gmail.com javascript: wrote: https://lh3.googleusercontent.com/-5KCNLVgLr-c/VEftxqSt4cI/ADk/gaj_ZhVH4qs/s1600/jl2.jpg Just tried your suggestion. Got another, probably similar, error message (see attached). Am Mittwoch, 22. Oktober 2014 19:28:44 UTC+2 schrieb Jake Bolewski: run Pkg.init() first if the metadata does not exist. On Wednesday, October 22, 2014 1:20:42 PM UTC-4, Markus Roth wrote: Hey advanced julia users, I am new to the julia programming language and just started to learn it. I just set up a new Linux Mint installation and installed julia by adding the ubuntu repository as suggested on the website. As a first step I wanted to install PyPlot by typing Pkg.add(PyPlot). I get an error message (see attached file). Can you help me with my problem because I am really interested in learning the language. Best, Markus https://lh3.googleusercontent.com/-DibYx6wzpZM/VEfm-rfl3CI/ADU/dMVb9vLUnys/s1600/jl.jpg
Re: [julia-users] Add new packages
https://lh5.googleusercontent.com/-ZUXtcL7O7NU/VEgdJWff3II/AD0/xLDvRBTWh_o/s1600/jl3.jpg Unfortunately got another error message (see screenshot) even though PyPlot seems to be installed. Am Mittwoch, 22. Oktober 2014 21:19:16 UTC+2 schrieb Elliot Saba: The nightlies should require `git` from now on. -E
Re: [julia-users] Add new packages
Seems that matplotlib was not installed. Installed it using sudo apt-get install python-matplotlib. Sorry for wasting your time. Hope that this helps other beginners at their first installation of julia. Will start learning julia tomarrow (hopefully ;)). Am Mittwoch, 22. Oktober 2014 23:10:53 UTC+2 schrieb Markus Roth: https://lh5.googleusercontent.com/-ZUXtcL7O7NU/VEgdJWff3II/AD0/xLDvRBTWh_o/s1600/jl3.jpg Unfortunately got another error message (see screenshot) even though PyPlot seems to be installed. Am Mittwoch, 22. Oktober 2014 21:19:16 UTC+2 schrieb Elliot Saba: The nightlies should require `git` from now on. -E