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

Scripted Logo Generation, take two #3935

Merged
merged 51 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
8462bc0
Added logo generation Python script.
trexfeathers Jul 28, 2020
e45a8e9
Replace lambda scale_func.n
Aug 13, 2020
49b120c
Matched current logo appearance.
Aug 16, 2020
3a920ae
Simplified gradient code.
Aug 16, 2020
c83d9c5
Renamed land_mask to land_clip.
Aug 16, 2020
f8c1058
Make new svg instead of faffing with reformatting existing.
Aug 16, 2020
b04ac7f
Refactor out 'style' in attributes.
Aug 16, 2020
a3d5ffb
File header.
Aug 16, 2020
b2e7d8c
Integrated logo generation script into Sphinx docs generation.
Aug 17, 2020
5ff7089
Environment variable logo names.
Aug 17, 2020
14f1c65
Removed banner width calculation to avoid font dependency.
Aug 18, 2020
956f8e0
Refactored to also generate rotating logos.
Aug 20, 2020
6725ae6
Replace plt.tightlayout with plt.subplots_adjust.
Aug 26, 2020
27b570f
Replaced OrderedDicts with dicts (not needed >=Py3.6).
Aug 26, 2020
4295b1b
Numpy standard import form.
Aug 26, 2020
83f25a8
Replaced animated SVG with precusor files for animated GIF.
Sep 18, 2020
062e64a
Corrected logo URL to source from ReadTheDocs site.
Sep 18, 2020
0e98343
Merge branch 'program_logo2' into program_logo - fresh start on lates…
trexfeathers Dec 4, 2020
0df3c2d
Changes to better match 'hand-created' logo.
trexfeathers Dec 7, 2020
6d812d9
Fixed logo rotate zip title.
trexfeathers Dec 8, 2020
4e0163f
Relocated logo generation script to SciTools/marketing.
trexfeathers Jan 11, 2021
409d27c
update links (#3942)
rcomer Dec 30, 2020
4e7da6e
Added logo generation Python script.
trexfeathers Jul 28, 2020
e85c47e
Replace lambda scale_func.n
Aug 13, 2020
b3b8c38
Matched current logo appearance.
Aug 16, 2020
3fc3b76
Simplified gradient code.
Aug 16, 2020
65a6fb2
Renamed land_mask to land_clip.
Aug 16, 2020
7bfe3f3
Make new svg instead of faffing with reformatting existing.
Aug 16, 2020
b8f563d
Refactor out 'style' in attributes.
Aug 16, 2020
0de1f6d
File header.
Aug 16, 2020
0beb89f
Integrated logo generation script into Sphinx docs generation.
Aug 17, 2020
7fb15b6
Environment variable logo names.
Aug 17, 2020
fd8b4df
Removed banner width calculation to avoid font dependency.
Aug 18, 2020
a630ad0
Refactored to also generate rotating logos.
Aug 20, 2020
a3a5671
Replace plt.tightlayout with plt.subplots_adjust.
Aug 26, 2020
b9c732b
Replaced OrderedDicts with dicts (not needed >=Py3.6).
Aug 26, 2020
34cdfa0
Numpy standard import form.
Aug 26, 2020
9e45140
Replaced animated SVG with precusor files for animated GIF.
Sep 18, 2020
32c443e
Corrected logo URL to source from ReadTheDocs site.
Sep 18, 2020
1185ddb
Changes to better match 'hand-created' logo.
trexfeathers Dec 7, 2020
19fdd90
Fixed logo rotate zip title.
trexfeathers Dec 8, 2020
c91b675
Relocated logo generation script to SciTools/marketing.
trexfeathers Jan 11, 2021
1b8b4fc
Include version string in logo generation.
Mar 14, 2021
7c8083c
Merge branch 'program_logo' of github.com:trexfeathers/iris into prog…
trexfeathers Aug 12, 2021
3000e34
Reference official logo generation code.
trexfeathers Aug 12, 2021
8731232
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 12, 2021
908207e
Merge remote-tracking branch 'upstream/main' into program_logo
trexfeathers Aug 12, 2021
85b28ee
Merge branch 'program_logo' of github.com:trexfeathers/iris into prog…
trexfeathers Aug 12, 2021
c08d1f9
Fix README docs reference.
trexfeathers Aug 12, 2021
e5054f6
Merge remote-tracking branch 'upstream/main' into program_logo
trexfeathers Jun 6, 2022
68cb2f3
Include the logos, don't generate on the fly.
trexfeathers Jun 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">
<a href="https://scitools-iris.readthedocs.io/en/latest/">
<img src="https://scitools-iris.readthedocs.io/en/latest/_static/iris-logo-title.png" alt="Iris" width="300"></a><br>
<img src="https://scitools-iris.readthedocs.io/en/latest/_static/iris-logo-title.svg" alt="Iris" width="300"></a><br>
</h1>


Expand Down
Binary file removed docs/src/_static/Iris7_1_trim_100.png
Binary file not shown.
Binary file removed docs/src/_static/Iris7_1_trim_full.png
Binary file not shown.
31 changes: 31 additions & 0 deletions docs/src/_static/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Iris logos

[![iris-logo-title.svg](iris-logo-title.svg)](iris-logo-title.svg)

Code for generating the logos is at:
[SciTools/marketing/iris/logo/generate_logo.py](https://github.com/SciTools/marketing/blob/master/iris/logo/generate_logo.py)

See the docstring of the `generate_logo()` function for more information.

## Why a scripted logo?

SVG logos are ideal for source-controlled projects:

* Low file size, with infinitely scaling quality
* Universally recognised vector format, editable by many software packages
* XML-style content = human-readable diff when changes are made

But Iris' logo is difficult to reproduce/edit using an SVG editor alone:

* Includes correctly projected, low resolution coastlines
* Needs precise alignment of the 'visual centre' of the iris with the centres
of the Earth and the image

An SVG image is simply XML format, so can be easily assembled automatically
with a script, which can also be engineered to address the above problems.

Further advantages of using a script:

* Parameterised text, making it easy to standardise the logo across all Iris
packages
* Can generate an animated GIF/SVG of a rotating Earth
Binary file removed docs/src/_static/favicon.ico
Binary file not shown.
Binary file removed docs/src/_static/iris-logo-title.png
Binary file not shown.
197 changes: 107 additions & 90 deletions docs/src/_static/iris-logo-title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions docs/src/_static/iris-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def _dotv(version):
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_logo = "_static/iris-logo-title.png"
html_favicon = "_static/favicon.ico"
html_logo = "_static/iris-logo-title.svg"
html_favicon = "_static/iris-logo.svg"
html_theme = "pydata_sphinx_theme"

# See https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html#configure-the-search-bar-position
Expand Down