Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3776
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2017-10-15 02:30 -0700 |
| References | <7315456a-1c46-4d21-a6d2-d6787dc89187@e6g2000prf.googlegroups.com> <fpmv1h$3su$1@brogar.bmsc.washington.edu> <a6ae496f-bbb3-4d68-ba81-b57acf1893a0@41g2000hsc.googlegroups.com> <fpnnc4$7qo$1@brogar.bmsc.washington.edu> <26548b34-97c3-441b-a5a5-1ca05754f7e5@o77g2000hsf.googlegroups.com> |
| Message-ID | <d44ae1d2-4143-43a6-b0f0-cec175b8d23c@googlegroups.com> (permalink) |
| Subject | Re: label a scatter plot with non-clashing text labels automatically |
| From | francis.tyers@gmail.com |
On Sunday, 24 February 2008 19:41:44 UTC+1, Rahul wrote: > > I know of several algorithms to do this, but it seems a rather > > specialized requirement. Probably it would be better to run it as > > a separate pass over the input data before feeding the data to > > gnuplot. My first thought is to take the original file containing > > [X Y label] and run it through the overlap-avoidance algorithm > > to produce a new file with extra columns Xnew Ynew. Then you > > would plot in 3 passes: > > That is a very good solution for me. Thanks! I think I'll go that way. > Do you know of any libraries that might have these overlap-avoidance- > routines implemented? (MATLAB / perl /python / R / C....anything at > all?) If possible I would like to avoid reinventing the > wheel.........In case you had some code-snippets / pseudocode or refs. > I'd be glad to have them before I re-start from scratch. > > I'm not shooting for a 100% successful, watertight algo; just > something that works "most" of the time for me. Even partial success > is better than my existing labor-intensive mess. I can always resolve > a few label-overlaps manually if can have a quick-n-dirty script do > better than the raw overlapped mess gnulot spews out right now. If any > fellow-gnuplot-users know of any time-saving hacks they can think of > (as opposed to the rigorous algorithms ) I'd appreciate the ideas too! > > > Yes. PostScript devices will use the exact font you ask for if they > > have it, otherwise they will substitute something else. > > Right. I was assuming we use a "standard" font. Arial, TNR, Hevletica, > Courier: something that the postcript printer has. (if not, one can > usually embed a font, right?) In this case we can be sure a priori > EXACTLY how large the font will be on the printed page, I guess. > > -Rahul Hi, I'm from the future! Try this: https://github.com/Phlya/adjustText/blob/master/examples/Examples.ipynb Fran PS. https://xkcd.com/979/
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Re: label a scatter plot with non-clashing text labels automatically francis.tyers@gmail.com - 2017-10-15 02:30 -0700 Re: label a scatter plot with non-clashing text labels automatically Gavin Buxton <gavinbuxton@gmail.com> - 2017-10-15 08:56 -0700
csiph-web