Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 23 01:32
    briochemc starred JuliaPlots/RecipesBase.jl
  • Jan 23 01:17
    Shushman edited #291
  • Jan 23 01:17
    Shushman opened #291
  • Jan 22 22:41
    Roger-luo opened #90
  • Jan 22 18:05
    Tokazama commented #290
  • Jan 21 14:00
  • Jan 18 19:39
    alecloudenback commented #245
  • Jan 17 09:56
    Tokazama commented #290
  • Jan 17 09:47
    mkborregaard commented #290
  • Jan 17 09:07
    Tokazama commented #290
  • Jan 17 07:43
    mkborregaard commented #290
  • Jan 16 23:34
    Tokazama opened #290
  • Jan 16 14:01
    BeastyBlacksmith starred JuliaPlots/RecipesBase.jl
  • Jan 16 07:14
    JackDevine edited #87
  • Jan 16 07:13

    JackDevine on master

    Fix issues (#89) * Fix various… (compare)

  • Jan 16 07:13
    JackDevine closed #89
  • Jan 16 07:13
    JackDevine closed #56
  • Jan 16 07:13
    JackDevine closed #69
  • Jan 16 07:13
    JackDevine closed #82
  • Jan 15 06:17
    JackDevine opened #89
BridgingBot
@GitterIRCbot
[slack] <arnavs> backend usage docs should probably go in Plots.jl
[slack] <kristofferc> It seems that savefig should just work or there should be specific docs for how to get a working tex output at least
[slack] <asinghvi17> Is the TeX output a standalone document?
[slack] <asinghvi17> Because it seems the backend code forces a standalone document to be printed
[slack] <asinghvi17> here’s the function:
BridgingBot
@GitterIRCbot
[slack] <asinghvi17> @loki._. is there a reason we force preamble printing? Can it be avoided, through a kwarg or global setting?
BridgingBot
@GitterIRCbot
[slack] <loki._.> What do you mean by, "we force preamble printing"? If you want a standalone ".tex" file you need to construct the plot with tex_output_standalone = true
[slack] <loki._.> That will have the preamble included
BridgingBot
@GitterIRCbot
[slack] <arnavs> it spits out something which is TeX, but it can’t be included in LaTeX documents out of the box (at elast, that I could see)
[slack] <arnavs> whereas the PGFPlotsX output cna be
[slack] <arnavs> tex_output_standalone = true …. this would have been a helpful flag to know.
[slack] <arnavs> there weren’t options that I could see documented on the savefig , but that would probaby do it
[slack] <loki._.> It's passed to the plot call not savefig ( I can't explain why, probably because it is quite special to pgfplots)
BridgingBot
@GitterIRCbot
[slack] <asinghvi17> Does it contain \documentclass or any other thing which should be in the preamble?
BridgingBot
@GitterIRCbot
[slack] <piever> There is an include_preamble option for that here: https://kristofferc.github.io/PGFPlotsX.jl/stable/man/save.html#Exporting-to-files-1 so maybe the Plots interface can expose that option as well
BridgingBot
@GitterIRCbot
[slack] <kristofferc> I think that is what this post describes how to do
BridgingBot
@GitterIRCbot
[slack] <loki._.> that is documented here. Though finding something in the Plots docs can definetly be improved.
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> When creating a plot with subplots, how can I:
(1) Get the legend to show outside the overall plot
(2) Get plots to share x and y axes (and labels)?
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> 1) not automatically, but you can hack it with an extra subplot with framestyle = :none and invisible series that plot the legend
[slack] <mkborregaard> 2) link = :xy I believe
[slack] <mkborregaard> labels? No. Only by plotting invisible series. Legends are per-subplot
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> Thanks, how does that hack work? So I have an array of my subplots and currently call plot(subblot_array...), changing that to plot([subplot_array; plot(framestyle = :none, legend = :left)]...) doesn't seem to change anything
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> Also is there a way to get a title for the whole figure? The attributes section says plot_title isn't currently implemented, is there another way?
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> A day full of plotting questions! Why am I getting a continuous line at the bottom of my histogram when I do using StatsPlots, Distributions; histogram(round.(rand(Normal(0.0, 1.5), 1_000_000)), linewidth = 2)
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> probably numbers occurring at low density?
[slack] <mkborregaard> once again, you can hack it with subplots
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> But the array only consists of integers between -6 and 6?
[slack] <nils.gudat> Ah, I think I get it, there's a zero height bar in between the integer values, so using linecolour = "white" makes it go away
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> Yes definitely, 0 is a data point too 😁
BridgingBot
@GitterIRCbot
[slack] <niklas.korsbo> setting the linecolour to the same as the background could make the bars seem lower than they are. linealpha = 0 would be more appropriate.
BridgingBot
@GitterIRCbot
[slack] <Rafael Schouten> If I have a composite plot of say 12 heatmaps (GeoData.jl rasters), how can I scatter plot points onto all of them? Running scatter! just plots on the first one
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> Specify subplot
[slack] <Rafael Schouten> oh right. so i can loop over it plotting on subplot 1:12?
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> yes
BridgingBot
@GitterIRCbot
[slack] <Rafael Schouten> works great thanks
BridgingBot
@GitterIRCbot
[slack] <piever> quick question: is the length of the ticks something that can be manipulated from plots (i.e., how many pixels is each tick long)? I've been asked by very detail-oriented collaborators to change them manually and was curious whether this can be done via code, but couldn't find the right attribute.
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> No, as you know Plots generally doesn’t cater well to the most detail-oriented
davidzentlermunro
@davidzentlermunro
I'm having trouble changing the font I'm using. I use the pyplot back end and have tried both setting Plots.font="TimesNewRoman", and setting each font individually eg titlefont=font(9,"TimesNewRoman") etc. I've also tried different fonts e.g "ComputerModern" and "Helvetica". I don't get an error message but nothing changes in the display
BridgingBot
@GitterIRCbot
[slack] <nils.gudat> Does StatsPlots have some precompilation issues? I feel like it precompiles an awful lot even on 1.3, a bit like in the bad old 1.2 days
BridgingBot
@GitterIRCbot
[slack] <ssfrr> Not sure if it precompiles more often, but it sure does seem to take a long time when it does
Javier Yu
@javieryu
Is there a way to display animation objects outside of Jupyter/IJulia?
BridgingBot
@GitterIRCbot
[slack] <loki._.> can we get rid of Plots.jl as default value for window_title?
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> wut?
[slack] <mkborregaard> ah
[slack] <mkborregaard> why?
BridgingBot
@GitterIRCbot
[slack] <loki._.> because, I thought about using it for a group title a la https://tex.stackexchange.com/questions/51002/how-can-a-title-be-placed-for-a-group-of-pgfplots, but then every plot would have this title by default. Otherwise one could also use the plot_title field for that ( actually what is the difference? ), but it says, this is not implemented yet
BridgingBot
@GitterIRCbot
[slack] <daschw> I think plot_title makes more sense for this, no? The window_title is not really a part of the plot. So it gets lost, when saving to png for example.
BridgingBot
@GitterIRCbot
[slack] <mkschleg> I’m using GR to make a discrete heatmap, and when saving to pdf it automatically interpolates between cells. Is there a way to turn this off when saving to a pdf? When saving a PNG it doesn’t do this.
BridgingBot
@GitterIRCbot
[slack] <mkborregaard> are you sure it’s not something that happens in your pdf viewer?